mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Warnings.
This commit is contained in:
parent
e15f330f80
commit
9094b807cc
1 changed files with 5 additions and 5 deletions
|
@ -43,7 +43,7 @@ abstract class JvmCompilerPlugin @Inject constructor(
|
||||||
* Log with a project.
|
* Log with a project.
|
||||||
*/
|
*/
|
||||||
protected fun lp(project: Project, s: String) {
|
protected fun lp(project: Project, s: String) {
|
||||||
log(2, "${project.name}: ${s}")
|
log(2, "${project.name}: $s")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun calculateClasspath(vararg allDependencies : List<IClasspathDependency>): List<IClasspathDependency> {
|
fun calculateClasspath(vararg allDependencies : List<IClasspathDependency>): List<IClasspathDependency> {
|
||||||
|
@ -105,18 +105,18 @@ abstract class JvmCompilerPlugin @Inject constructor(
|
||||||
sourceDirs.addAll(project.sourceDirectoriesTest.filter { it.contains("resources") })
|
sourceDirs.addAll(project.sourceDirectoriesTest.filter { it.contains("resources") })
|
||||||
outputDir = KFiles.TEST_CLASSES_DIR
|
outputDir = KFiles.TEST_CLASSES_DIR
|
||||||
} else {
|
} else {
|
||||||
throw IllegalArgumentException("Custom source sets not supported yet: ${sourceSet}")
|
throw IllegalArgumentException("Custom source sets not supported yet: $sourceSet")
|
||||||
}
|
}
|
||||||
|
|
||||||
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(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)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
lp(project, "No resources to copy for ${sourceSet}")
|
lp(project, "No resources to copy for $sourceSet")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue