mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 18:15:55 +00:00
Moved version.txt to lombok.core.Version.java.
This commit is contained in:
1 parent
293a4bfaf0
commit
d7e5537b9e
3 files changed
+34
-8
No files matched your search
@@ -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">
|
||||
|
||||
@@ -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 +0,0 @@
|
||||
0.2.0
|
||||
Reference in new issue
Block a user