aboutsummaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-06-15 20:46:04 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-06-15 20:46:52 +0200
commitd7e5537b9e5afd299bd88aa4566ca343ba12edd7 (patch)
tree1738340a7579920f7d757ec3e2b4164d10329df1 /build.xml
parent293a4bfaf056d11256980fb55a914d47fbbcd36c (diff)
downloadlombok-d7e5537b9e5afd299bd88aa4566ca343ba12edd7.tar.gz
lombok-d7e5537b9e5afd299bd88aa4566ca343ba12edd7.tar.bz2
lombok-d7e5537b9e5afd299bd88aa4566ca343ba12edd7.zip
Moved version.txt to lombok.core.Version.java.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml24
1 files changed, 17 insertions, 7 deletions
diff --git a/build.xml b/build.xml
index 7a42b8f7..25657d12 100644
--- a/build.xml
+++ b/build.xml
@@ -1,10 +1,4 @@
<project name="lombok" default="dist">
- <loadresource property="lombok.version">
- <file file="version.txt" />
- <filterchain>
- <striplinebreaks />
- </filterchain>
- </loadresource>
<property name="build.compiler" value="javac1.6" />
<path id="lombok.deps.path">
<fileset dir="deps/lombok">
@@ -59,7 +53,23 @@
</unjar>
</target>
- <target name="dist" depends="clean, compile, unpackLibs">
+ <target name="getVersion" depends="compile">
+ <java
+ classname="lombok.core.Version"
+ classpath="build/lombok"
+ failonerror="true"
+ output="build/version.txt" />
+ <loadresource property="lombok.version">
+ <file file="build/version.txt" />
+ <filterchain>
+ <striplinebreaks />
+ </filterchain>
+ </loadresource>
+ <delete file="build/version.txt" />
+ <echo level="info">Lombok version: ${lombok.version}</echo>
+ </target>
+
+ <target name="dist" depends="clean, compile, getVersion, unpackLibs">
<mkdir dir="dist" />
<jar basedir="build/lombok" destfile="dist/lombok-${lombok.version}.jar" />
<jar basedir="build/eclipse.agent" destfile="dist/lombok.eclipse.agent-${lombok.version}.jar">