aboutsummaryrefslogtreecommitdiff
path: root/src/delombok/lombok
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2009-12-02 04:07:41 +0100
committerRoel Spilker <r.spilker@gmail.com>2009-12-02 04:07:41 +0100
commitf05facd4576648122f7bdb80122dc7a1b3f6ecf6 (patch)
treee9ad6386689ab98fce1a79a6c66112eba9ed29a5 /src/delombok/lombok
parent2ef7ef3e9f925f92a23ad279755db165495623ab (diff)
downloadlombok-f05facd4576648122f7bdb80122dc7a1b3f6ecf6.tar.gz
lombok-f05facd4576648122f7bdb80122dc7a1b3f6ecf6.tar.bz2
lombok-f05facd4576648122f7bdb80122dc7a1b3f6ecf6.zip
Make delombok actually work from the command line if tools.jar is not already on your classpath
Diffstat (limited to 'src/delombok/lombok')
-rw-r--r--src/delombok/lombok/delombok/DelombokApp.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delombok/lombok/delombok/DelombokApp.java b/src/delombok/lombok/delombok/DelombokApp.java
index 71fda96f..76d5aed3 100644
--- a/src/delombok/lombok/delombok/DelombokApp.java
+++ b/src/delombok/lombok/delombok/DelombokApp.java
@@ -108,7 +108,7 @@ public class DelombokApp implements LombokApp {
}
};
try {
- loader.loadClass("lombok.delombok.Delombok").getMethod("main", String[].class).invoke(null, new Object[] {args});
+ loader.loadClass("lombok.delombok.Delombok").getMethod("main", String[].class).invoke(null, new Object[] {args.toArray(new String[0])});
} catch (InvocationTargetException e1) {
Throwable t = e1.getCause();
if (t instanceof Error) throw (Error)t;