Drop "-sourceFiles" in kotlinc-js
Use free arguments instead, as is done in kotlinc-jvm and all sensible compilers everywhere Also fix some cases of AntTaskTest to be able to run them locally
This commit is contained in:
@@ -157,13 +157,12 @@ public class KotlinCompilerRunner {
|
||||
) {
|
||||
setupCommonSettings(settings);
|
||||
|
||||
List<String> sourceFilePaths = ContainerUtil.map(sourceFiles, new Function<File, String>() {
|
||||
settings.freeArgs = ContainerUtil.map(sourceFiles, new Function<File, String>() {
|
||||
@Override
|
||||
public String fun(File file) {
|
||||
return file.getPath();
|
||||
}
|
||||
});
|
||||
settings.sourceFiles = ArrayUtil.toStringArray(sourceFilePaths);
|
||||
settings.outputFile = outputFile.getPath();
|
||||
settings.libraryFiles = ArrayUtil.toStringArray(libraryFiles);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user