mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Reformat.
This commit is contained in:
parent
70c297951f
commit
5f48cb18e9
1 changed files with 3 additions and 3 deletions
|
@ -189,15 +189,15 @@ class CompilerUtils @Inject constructor(val files: KFiles, val dependencyManager
|
||||||
val outputDir = sourceSet.outputDir
|
val outputDir = sourceSet.outputDir
|
||||||
|
|
||||||
val variantSourceDirs = context.variant.resourceDirectories(project, sourceSet)
|
val variantSourceDirs = context.variant.resourceDirectories(project, sourceSet)
|
||||||
if (variantSourceDirs.size > 0) {
|
if (variantSourceDirs.isNotEmpty()) {
|
||||||
context.logger.log(project.name, 2, "Copying $sourceSet resources")
|
context.logger.log(project.name, 2, "Copying $sourceSet resources")
|
||||||
val absOutputDir = File(KFiles.joinDir(project.directory, project.buildDirectory, outputDir))
|
val absOutputDir = File(KFiles.joinDir(project.directory, project.buildDirectory, outputDir))
|
||||||
variantSourceDirs
|
variantSourceDirs
|
||||||
.map { File(project.directory, it.path) }
|
.map { File(project.directory, it.path) }
|
||||||
.filter(File::exists)
|
.filter(File::exists)
|
||||||
.forEach {
|
.forEach {
|
||||||
context.logger.log(project.name, 2, "Copying from $it to $absOutputDir")
|
context.logger.log(project.name, 2, "Copying from $it to $absOutputDir")
|
||||||
KFiles.copyRecursively(it, absOutputDir, deleteFirst = false)
|
KFiles.copyRecursively(it, absOutputDir, deleteFirst = false)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
context.logger.log(project.name, 2, "No resources to copy for $sourceSet")
|
context.logger.log(project.name, 2, "No resources to copy for $sourceSet")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue