mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 16:15:16 +00:00
Delomboking multiple files still wasn't working right and would result in an IllegalStateException. Fixed.
This commit is contained in:
1 parent
2c3b34704a
commit
a79ca059e9
1 file changed
+13
-13
@@ -173,8 +173,8 @@ public class Delombok {
|
||||
if (args.classpath != null) delombok.setClasspath(args.classpath);
|
||||
if (args.sourcepath != null) delombok.setSourcepath(args.sourcepath);
|
||||
|
||||
for (String in : args.input) {
|
||||
try {
|
||||
try {
|
||||
for (String in : args.input) {
|
||||
File f = new File(in);
|
||||
if (f.isFile()) {
|
||||
delombok.addFile(f.getParentFile(), f.getName());
|
||||
@@ -185,18 +185,18 @@ public class Delombok {
|
||||
} else {
|
||||
if (!args.quiet) System.err.println("WARNING: not a standard file or directory - skipping: " + f);
|
||||
}
|
||||
|
||||
delombok.delombok();
|
||||
} catch (Exception e) {
|
||||
if (!args.quiet) {
|
||||
String msg = e.getMessage();
|
||||
if (msg != null && msg.startsWith("DELOMBOK: ")) System.err.println(msg.substring("DELOMBOK: ".length()));
|
||||
else {
|
||||
e.printStackTrace();
|
||||
}
|
||||
System.exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
delombok.delombok();
|
||||
} catch (Exception e) {
|
||||
if (!args.quiet) {
|
||||
String msg = e.getMessage();
|
||||
if (msg != null && msg.startsWith("DELOMBOK: ")) System.err.println(msg.substring("DELOMBOK: ".length()));
|
||||
else {
|
||||
e.printStackTrace();
|
||||
}
|
||||
System.exit(1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user