Fixed evil bug in processing command-line args: classpath was added as annotations path.
This commit is contained in:
@@ -192,7 +192,7 @@ public class K2JVMCompiler extends CLICompiler<K2JVMCompilerArguments, K2JVMComp
|
|||||||
annotationsPath.add(PathUtil.getJdkAnnotationsPath());
|
annotationsPath.add(PathUtil.getJdkAnnotationsPath());
|
||||||
}
|
}
|
||||||
if (arguments.annotations != null) {
|
if (arguments.annotations != null) {
|
||||||
for (String element : Splitter.on(File.pathSeparatorChar).split(arguments.classpath)) {
|
for (String element : Splitter.on(File.pathSeparatorChar).split(arguments.annotations)) {
|
||||||
annotationsPath.add(new File(element));
|
annotationsPath.add(new File(element));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user