Moved version.txt to lombok.core.Version.java.

This commit is contained in:
Reinier Zwitserloot committed 2009-06-15 20:46:52 +02:00
1 parent 293a4bfaf0
commit d7e5537b9e
3 files changed
+34 -8

No files matched your search

+17 -7
View File
@@ -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">
+17
View File
@@ -0,0 +1,17 @@
package lombok.core;
public class Version {
private static final String VERSION = "0.2.0";
private Version() {
//Prevent instantiation
}
public static void main(String[] args) {
System.out.println(VERSION);
}
public static String getVersion() {
return VERSION;
}
}
-1
View File
@@ -1 +0,0 @@
0.2.0