mirror of
https://github.com/Pridecraft-Studios/joy.git
synced 2025-08-03 14:36:03 -04:00
feat: Multi-source cleanup
This commit is contained in:
parent
58e6ba1b82
commit
b790d4fd1e
@ -145,8 +145,11 @@ tasks {
|
|||||||
|
|
||||||
onlyIf { cleanupSource != null }
|
onlyIf { cleanupSource != null }
|
||||||
|
|
||||||
if (cleanupSource != null) {
|
val cleanupSources = cleanupSource?.split(File.pathSeparatorChar) ?: listOf()
|
||||||
inputs.files(cleanupSource, sourceSets.main.get().resources)
|
|
||||||
|
if (cleanupSources.isNotEmpty()) {
|
||||||
|
cleanupSources.forEach(inputs::files)
|
||||||
|
allprojects { inputs.files(sourceSets.main.get().resources) }
|
||||||
}
|
}
|
||||||
|
|
||||||
doLast {
|
doLast {
|
||||||
@ -224,9 +227,12 @@ tasks {
|
|||||||
other.hit += file
|
other.hit += file
|
||||||
}
|
}
|
||||||
|
|
||||||
for (file in project.fileTree(cleanupSource)) {
|
for (source in cleanupSources) {
|
||||||
logger.debug("Src {}", file)
|
logger.debug("SrcSrc {}", source)
|
||||||
doWork(file)
|
for (file in project.fileTree(source)) {
|
||||||
|
logger.debug("Src {}", file)
|
||||||
|
doWork(file)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user