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 }
|
||||
|
||||
if (cleanupSource != null) {
|
||||
inputs.files(cleanupSource, sourceSets.main.get().resources)
|
||||
val cleanupSources = cleanupSource?.split(File.pathSeparatorChar) ?: listOf()
|
||||
|
||||
if (cleanupSources.isNotEmpty()) {
|
||||
cleanupSources.forEach(inputs::files)
|
||||
allprojects { inputs.files(sourceSets.main.get().resources) }
|
||||
}
|
||||
|
||||
doLast {
|
||||
@ -224,10 +227,13 @@ tasks {
|
||||
other.hit += file
|
||||
}
|
||||
|
||||
for (file in project.fileTree(cleanupSource)) {
|
||||
for (source in cleanupSources) {
|
||||
logger.debug("SrcSrc {}", source)
|
||||
for (file in project.fileTree(source)) {
|
||||
logger.debug("Src {}", file)
|
||||
doWork(file)
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
for (file in sourceSets.main.get().resources) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user