aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/core
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-07-05 00:49:54 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-07-05 00:49:54 +0200
commite7492d444cace44a39d94853512c31a9b95d930d (patch)
treec245e78ba3b328f255c1584f0702c04251d6dd4f /src/lombok/core
parent938d4bb9f231722b2f55b71a05ecf9c3878119aa (diff)
downloadlombok-e7492d444cace44a39d94853512c31a9b95d930d.tar.gz
lombok-e7492d444cace44a39d94853512c31a9b95d930d.tar.bz2
lombok-e7492d444cace44a39d94853512c31a9b95d930d.zip
W00t - written an installer that should work on linux (sort of), windows, and Mac OS X. Bumped the version number to celebrate, and changed build to roll the agent.jar into the main jar, and
change the executable class from the minimal help that was there to the installer. That minimal help thing (ShowUserHelp.java) is now gone.
Diffstat (limited to 'src/lombok/core')
-rw-r--r--src/lombok/core/ShowUserHelp.java32
-rw-r--r--src/lombok/core/Version.java2
2 files changed, 1 insertions, 33 deletions
diff --git a/src/lombok/core/ShowUserHelp.java b/src/lombok/core/ShowUserHelp.java
deleted file mode 100644
index 443de833..00000000
--- a/src/lombok/core/ShowUserHelp.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package lombok.core;
-
-import java.net.URI;
-
-/**
- * This class is used as main class for the lombok jar; this way, if the jar is run as java app, the user is pointed
- * at documentation about lombok.
- */
-public class ShowUserHelp {
- private static final URI ABOUT_LOMBOK_URL = URI.create("http://wiki.github.com/rzwitserloot/lombok");
-
- public static void main(String[] args) {
- boolean browserOpened = false;
- try {
- //java.awt.Desktop doesn't exist in 1.5, and for IDE's sakes, we may want to work in java1.5 someday, so...
- Object desktop = Class.forName("java.awt.Desktop").getMethod("getDesktop").invoke(null);
- Class.forName("java.awt.Desktop").getMethod("browse", URI.class).invoke(desktop, ABOUT_LOMBOK_URL);
- browserOpened = true;
- } catch ( Exception ignore ) {}
-
- String version = Version.getVersion();
- final String nextStep = browserOpened ? "See your browser window" :
- String.format("Browse to %s", ABOUT_LOMBOK_URL);
-
- System.out.printf("About lombok v%s\n" +
- "Lombok makes java better by providing very spicy additions to the Java programming language," +
- "such as using @Getter to automatically generate a getter method for any field.\n\n%s" +
- " for more information about the lombok project, and how to" +
- "install it into your programming environment. If you are just using javac (the java compiler)," +
- "just use this jar, no further steps needed.", version, nextStep);
- }
-}
diff --git a/src/lombok/core/Version.java b/src/lombok/core/Version.java
index eff6b151..cb349aaf 100644
--- a/src/lombok/core/Version.java
+++ b/src/lombok/core/Version.java
@@ -1,7 +1,7 @@
package lombok.core;
public class Version {
- private static final String VERSION = "0.3.5";
+ private static final String VERSION = "0.4";
private Version() {
//Prevent instantiation