[CLI] K2JVMCompilerArguments: Model modulePath as Array<String>
to allow interning individual file-path arguments on the IDE KTIJ-24976
This commit is contained in:
committed by
Space Team
parent
9dcd40d7b7
commit
fb66764c4d
+3
-2
@@ -165,13 +165,14 @@ public class K2JVMCompileMojo extends KotlinCompileMojoBase<K2JVMCompilerArgumen
|
||||
|
||||
if (!classpathList.isEmpty()) {
|
||||
String classPathString = join(classpathList, File.pathSeparator);
|
||||
String[] classPath = classpathList.toArray(new String[0]);
|
||||
if (isJava9Module(sourceRoots)) {
|
||||
getLog().debug("Module path: " + classPathString);
|
||||
arguments.setJavaModulePath(classPathString);
|
||||
arguments.setJavaModulePath(classPath);
|
||||
}
|
||||
else {
|
||||
getLog().debug("Classpath: " + classPathString);
|
||||
arguments.setClasspath(classpathList.toArray(String[]::new));
|
||||
arguments.setClasspath(classPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user