Dylan Bolger
03/20/2024, 8:37 PMCopy
task is coming from? The process{MyConfigurationName}Resources
task is failing, but I don't understand why. I think this task is being automatically generated since my configuration specifies a resources.srcDir
.Vampire
03/20/2024, 8:39 PMsrcDir
for it or not.Vampire
03/20/2024, 8:39 PMVampire
03/20/2024, 8:40 PMtasks.processResources {
doFirst {
inputs.files.forEach {
println("input file: $it")
}
}
}
Dylan Bolger
03/20/2024, 8:45 PMVampire
03/20/2024, 8:51 PMVampire
03/20/2024, 8:52 PMVampire
03/20/2024, 8:52 PMDylan Bolger
03/20/2024, 9:03 PMDylan Bolger
03/20/2024, 9:25 PMresources
directory has 12 files but when I use the eachFile
closure, it reports 13 files with the one being duplicated for some reason:
project.tasks.named('processMyConfigurationResources', ProcessResources) {
eachFile { FileCopyDetails fcd ->
println "${fcd}"
}
}
Dylan Bolger
03/21/2024, 12:51 PMresources.srcDir file('src/mySourceSetName/resources')
was trying to double the resources since like you said, ProcessResources
always happens. 🙂Dylan Bolger
03/21/2024, 12:52 PM