k4rn4k
2012-03-27 12:12:51 UTC
Hello,
Im setting this task outputs like shown in the user guide, but It's always
being resolved as "up to date as it has no source files".
task buildExplodedWar(type: Copy)<<{
//Configuring inputs/outputs
destDir = new File ("$project.buildDir/war")
project.configurations.runtime.each{srcFile ->
inputs.file srcFile
}
outputs.dir destDir
//Some copy behaviour
}
--
View this message in context: http://gradle.1045684.n5.nabble.com/Setting-task-inputs-and-outputs-always-gives-UP-to-Date-tp5597656p5597656.html
Sent from the gradle-user mailing list archive at Nabble.com.
Im setting this task outputs like shown in the user guide, but It's always
being resolved as "up to date as it has no source files".
task buildExplodedWar(type: Copy)<<{
//Configuring inputs/outputs
destDir = new File ("$project.buildDir/war")
project.configurations.runtime.each{srcFile ->
inputs.file srcFile
}
outputs.dir destDir
//Some copy behaviour
}
--
View this message in context: http://gradle.1045684.n5.nabble.com/Setting-task-inputs-and-outputs-always-gives-UP-to-Date-tp5597656p5597656.html
Sent from the gradle-user mailing list archive at Nabble.com.