mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 10:18:46 +00:00
running java -jar lombok.jar version now also prints release name.
This commit is contained in:
1 parent
7c78b4ac08
commit
3153e1dd2a
2 files changed
+6
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user