Hi,
I have a problem with a generated war, I have noticed that the content was duplicated for a few files.
Well I believe that’s caused by resources declared in my sourceSets and the tmp directory that I have used for generating my custom War:
sourceSets{
main{
java{
srcDir 'src/'
}
resources{
srcDir 'resource'
srcDir 'resource-externally'
}
....
task generateWar(type: War){
version "$version"
destinationDir = file("$buildDir/dist")
from ("$buildDir/war")
}
I know that the war plugin will uses the resources defined in the sourceSets and also will add my custom content generated in “$buildDir/war”. So this explain why the content is duplicated for some files.
Is there a way that forces gradle to use only “$buildDir/war” content for generating my custom war?
Thanks