From 3153e1dd2ad65898ed9c5874733d06563da08b3c Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 15 Dec 2009 20:28:25 +0100 Subject: running java -jar lombok.jar version now also prints release name. --- src/core/lombok/core/Main.java | 2 +- src/core/lombok/core/Version.java | 6 +++++- 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 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); + } } -- cgit