War folder

Maven creates an unarchived image of the WAR file in target/- folder. Is there a way to do the same thing in gradle?

hi andrei,

to get an explodedWar directory in your build folder, you have to create a custom task of type copy. In that custom task you can reuse the copyspec of the war task:

task explodedWar(type: Copy) {
    into "$buildDir/explodedWar"
    with war
}

regards, René

Thanks! it works.