diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-11-27 09:49:48 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-11-27 09:49:48 +0100 |
commit | 2b61c2534b22f07a13d8cb4c97c2ad323c6c4597 (patch) | |
tree | 1aec17de05371b3a5ca02e25793e43e33c70e9b3 /src/installer | |
parent | 9b55af61dbd585a745e24a43ac27574a69ed15f2 (diff) | |
download | lombok-2b61c2534b22f07a13d8cb4c97c2ad323c6c4597.tar.gz lombok-2b61c2534b22f07a13d8cb4c97c2ad323c6c4597.tar.bz2 lombok-2b61c2534b22f07a13d8cb4c97c2ad323c6c4597.zip |
Delombok now works from the command line as:
java -jar lombok.jar delombok (args)
Diffstat (limited to 'src/installer')
-rw-r--r-- | src/installer/lombok/installer/Installer.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/installer/lombok/installer/Installer.java b/src/installer/lombok/installer/Installer.java index e1da5d31..a823dd69 100644 --- a/src/installer/lombok/installer/Installer.java +++ b/src/installer/lombok/installer/Installer.java @@ -64,6 +64,7 @@ import javax.swing.UIManager; import javax.swing.filechooser.FileFilter; import lombok.core.Version; +import lombok.delombok.Delombok; import lombok.installer.EclipseFinder.OS; import lombok.installer.EclipseLocation.InstallException; import lombok.installer.EclipseLocation.NotAnEclipseException; @@ -95,6 +96,12 @@ public class Installer { private JButton installButton; public static void main(String[] args) { + if (args.length > 0 && args[0].equals("delombok")) { + String[] newArgs = new String[args.length-1]; + System.arraycopy(args, 1, newArgs, 0, newArgs.length); + Delombok.main(newArgs); + return; + } if (args.length > 0 && (args[0].equals("install") || args[0].equals("uninstall"))) { boolean uninstall = args[0].equals("uninstall"); if (args.length < 3 || !args[1].equals("eclipse")) { |