mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 22:16:11 +00:00
Make delombok actually work from the command line if tools.jar is not already on your classpath
This commit is contained in:
1 parent
2ef7ef3e9f
commit
f05facd457
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user