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

Fix build directory for the application plug-in.

Fixes https://github.com/cbeust/kobalt/issues/473
This commit is contained in:
Cedric Beust 2018-02-13 12:53:32 -08:00
parent 3d23f38239
commit 645901d988

View file

@ -187,8 +187,8 @@ open class JvmCompilerPlugin @Inject constructor(
var done = false
// The directory where the classes get compiled
val buildDirectory =
if (isTest) File(project.buildDirectory, KFiles.TEST_CLASSES_DIR)
else File(project.classesDir(context))
if (isTest) File(KFiles.joinDir(project.directory, project.buildDirectory, KFiles.TEST_CLASSES_DIR))
else File(KFiles.joinDir(project.directory, project.classesDir(context)))
allCompilersSorted.doWhile({ ! done }) { compiler ->
val compilerResults = compilerUtils.invokeCompiler(project, context, compiler,