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

Use the project.directory for dependencies.

This commit is contained in:
Cedric Beust 2015-11-09 18:11:37 -08:00
parent fe9891698c
commit 7110a17a07

View file

@ -108,7 +108,9 @@ abstract class JvmCompilerPlugin @Inject constructor(
if (sourceDirs.size > 0) { if (sourceDirs.size > 0) {
lp(project, "Copying $sourceSet resources") lp(project, "Copying $sourceSet resources")
val absOutputDir = File(KFiles.joinDir(project.directory, project.buildDirectory!!, outputDir)) val absOutputDir = File(KFiles.joinDir(project.directory, project.buildDirectory!!, outputDir))
sourceDirs.map { File(it) }.filter { it.exists() } .forEach { sourceDirs.map { File(project.directory, it) }.filter {
it.exists()
} .forEach {
log(2, "Copying from $sourceDirs to $absOutputDir") log(2, "Copying from $sourceDirs to $absOutputDir")
KFiles.copyRecursively(it, absOutputDir) KFiles.copyRecursively(it, absOutputDir)
} }