1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Use source files instead of directories for JavaPlugin.

This commit is contained in:
Cedric Beust 2015-10-27 20:33:05 -07:00
parent afb6b8e76f
commit 0d055756a5

View file

@ -59,8 +59,7 @@ public class JavaPlugin @Inject constructor(
args.add("-classpath")
args.add(stringClasspath.joinToString(File.pathSeparator))
}
val compressed = sourcesToDirectories(sourceFiles, project.sourceSuffix)
args.addAll(compressed)
args.addAll(sourceFiles)
val pb = ProcessBuilder(args)
pb.directory(File(project.directory))
@ -69,7 +68,7 @@ public class JavaPlugin @Inject constructor(
// pb.redirectError(File("/tmp/kobalt-err"))
// pb.redirectOutput(File("/tmp/kobalt-out"))
val line = args.joinToString(" ")
log(1, " Compiling ${compressed.size} directories")
log(1, " Compiling ${sourceFiles.size} files")
log(2, " Compiling $project:\n$line")
val process = pb.start()
val errorCode = process.waitFor()