running java -jar lombok.jar version now also prints release name.

This commit is contained in:
Reinier Zwitserloot committed 2009-12-15 20:28:25 +01:00
1 parent 7c78b4ac08
commit 3153e1dd2a
2 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ public class Main {
}
@Override public int runApp(List<String> args) {
System.out.println(Version.getVersion());
System.out.println(Version.getFullVersion());
return 0;
}
}
+5 -1
View File
@@ -38,7 +38,7 @@ public class Version {
*/
public static void main(String[] args) {
if (args.length > 0) {
System.out.printf("Lombok v%s \"%s\"\n", VERSION, RELEASE_NAME);
System.out.printf("Lombok %s", getFullVersion());
} else {
System.out.println(VERSION);
}
@@ -61,4 +61,8 @@ public class Version {
public static String getReleaseName() {
return RELEASE_NAME;
}
public static String getFullVersion() {
return String.format("v%s \"%s\"\n", VERSION, RELEASE_NAME);
}
}