Fix Maven build due to recent changes to CLI arguments
This commit is contained in:
+2
-4
@@ -160,10 +160,8 @@ public class K2JSCompilerMojo extends KotlinCompileMojo {
|
||||
k2jsArgs.verbose = true;
|
||||
}
|
||||
List<String> sources = getSources();
|
||||
if (sources.size() > 0) {
|
||||
k2jsArgs.sourceFiles = sources.toArray(new String[sources.size()]);
|
||||
}
|
||||
getLog().info("Compiling Kotlin src from " + Arrays.asList(k2jsArgs.sourceFiles) + " to JavaScript at: " + outputFile);
|
||||
k2jsArgs.freeArgs.addAll(sources);
|
||||
getLog().info("Compiling Kotlin src from " + sources + " to JavaScript at: " + outputFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -293,11 +293,11 @@ public abstract class KotlinCompileMojoBase extends AbstractMojo {
|
||||
arguments.module = module;
|
||||
}
|
||||
else {
|
||||
if (sources.size() <= 0)
|
||||
if (sources.isEmpty())
|
||||
throw new MojoExecutionException("No source roots to compile");
|
||||
|
||||
arguments.src = join(sources, File.pathSeparator);
|
||||
log.info("Compiling Kotlin sources from " + arguments.src);
|
||||
arguments.freeArgs.addAll(sources);
|
||||
log.info("Compiling Kotlin sources from " + sources);
|
||||
|
||||
// TODO: Move it compiler
|
||||
classpathList.addAll(sources);
|
||||
|
||||
Reference in New Issue
Block a user