aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-12-15 20:28:25 +0100
committerReinier Zwitserloot <reinier@tipit.to>2009-12-15 20:28:25 +0100
commit3153e1dd2ad65898ed9c5874733d06563da08b3c (patch)
treed0c63cfece4be35c8afa5ec92bf2bb483e4e623b /src/core
parent7c78b4ac0828d146a0219094f5b8ceaa233fe152 (diff)
downloadlombok-3153e1dd2ad65898ed9c5874733d06563da08b3c.tar.gz
lombok-3153e1dd2ad65898ed9c5874733d06563da08b3c.tar.bz2
lombok-3153e1dd2ad65898ed9c5874733d06563da08b3c.zip
running java -jar lombok.jar version now also prints release name.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lombok/core/Main.java2
-rw-r--r--src/core/lombok/core/Version.java6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/core/lombok/core/Main.java b/src/core/lombok/core/Main.java
index b75d0513..6a02199a 100644
--- a/src/core/lombok/core/Main.java
+++ b/src/core/lombok/core/Main.java
@@ -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;
}
}
diff --git a/src/core/lombok/core/Version.java b/src/core/lombok/core/Version.java
index 405fcc9d..295dfae2 100644
--- a/src/core/lombok/core/Version.java
+++ b/src/core/lombok/core/Version.java
@@ -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);
+ }
}