War task's manifest.mf correct location

War task should include META-INF/MANIFEST.MF in the correct classpath location, which is “WEB-INF/classes/” not at root “/” as it is in Jar task.

task myWar(type: War) {

manifest {

attributes 'XX: “ZZ”

} }

-> should have MANIFEST.MF in myWar.war/WEB-INF/classes/META-INF/

I’m pretty sure that ‘/META-INF/MANIFEST.MF’ is the correct location in a ‘war’ file. I can’t find any reference to putting a manifest inside ‘WEB-INF/classes/META-INF’.

‘/META-INF/MANIFEST.MF’ is correct. After all, the War format is an extension of the Jar format.

It looks like you’re right, it isn’t possible to read MANIFEST from war’s classpath.