Fixed evil bug in processing command-line args: classpath was added as annotations path.

This commit is contained in:
Evgeny Gerashchenko
2012-07-11 15:44:43 +04:00
parent 0ef0f023b7
commit 3bf8321e3c
@@ -192,7 +192,7 @@ public class K2JVMCompiler extends CLICompiler<K2JVMCompilerArguments, K2JVMComp
annotationsPath.add(PathUtil.getJdkAnnotationsPath());
}
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));
}
}