diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-15 20:46:04 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-15 20:46:52 +0200 |
commit | d7e5537b9e5afd299bd88aa4566ca343ba12edd7 (patch) | |
tree | 1738340a7579920f7d757ec3e2b4164d10329df1 /build.xml | |
parent | 293a4bfaf056d11256980fb55a914d47fbbcd36c (diff) | |
download | lombok-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.xml | 24 |
1 files changed, 17 insertions, 7 deletions
@@ -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"> |