aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-12-15 20:16:29 +0100
committerReinier Zwitserloot <reinier@tipit.to>2009-12-15 20:16:29 +0100
commitfb189915506b964b40676348ea6dd81e4a7652ef (patch)
treedf0124c60bcf704850fdbb25633f65bc31b9c3f7
parent83f54c4f54652659d1397246a11145239e4443f1 (diff)
downloadlombok-fb189915506b964b40676348ea6dd81e4a7652ef.tar.gz
lombok-fb189915506b964b40676348ea6dd81e4a7652ef.tar.bz2
lombok-fb189915506b964b40676348ea6dd81e4a7652ef.zip
prerelease prep
-rw-r--r--src/core/lombok/core/Version.java20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/core/lombok/core/Version.java b/src/core/lombok/core/Version.java
index 37944218..8f836ea3 100644
--- a/src/core/lombok/core/Version.java
+++ b/src/core/lombok/core/Version.java
@@ -26,7 +26,8 @@ package lombok.core;
*/
public class Version {
// ** CAREFUL ** - this class must always compile with 0 dependencies (it must not refer to any other sources or libraries).
- private static final String VERSION = "0.9.2-HEAD";
+ private static final String VERSION = "0.9.2";
+ private static final String RELEASE_NAME = "hailbunny";
private Version() {
//Prevent instantiation
@@ -36,7 +37,11 @@ public class Version {
* Prints the version followed by a newline, and exits.
*/
public static void main(String[] args) {
- System.out.println(VERSION);
+ if (args.length > 0) {
+ System.out.printf("Lombok v%s \"%s\"\n", VERSION, RELEASE_NAME);
+ } else {
+ System.out.println(VERSION);
+ }
}
/**
@@ -45,4 +50,15 @@ public class Version {
public static String getVersion() {
return VERSION;
}
+
+ /**
+ * Get the current release name.
+ *
+ * The release name is a string (not numbers). Every time a new release has a significantly improved feature set, a new release name is given.
+ * Thus, many versions can carry the same release name. Version bumps and release names are not related; if a new version of lombok is entirely
+ * backwards compatible with a previous one, but also adds many new features, it will get only a minor version bump, but also a new release name.
+ */
+ public static String getReleaseName() {
+ return RELEASE_NAME;
+ }
}