enabled multiple source directories

This commit is contained in:
James Strachan
2012-04-05 15:39:14 +01:00
parent 92df93a9db
commit 59b8829657
@@ -142,13 +142,8 @@ public abstract class KotlinCompileMojoBase extends AbstractMojo {
if (sources.size() <= 0)
throw new MojoExecutionException("No source roots to compile");
if (sources.size() > 1)
throw new MojoExecutionException("Multiple source roots are not supported yet");
final String src = sources.get(0);
log.info("Compiling Kotlin sources from " + src);
arguments.setSrc(src);
arguments.setSourceDirs(sources);
log.info("Compiling Kotlin sources from " + arguments.getSourceDirs());
}
final ArrayList<String> classpathList = new ArrayList<String>(classpath);