War task's manifest.mf correct location


(Denis Stepanov) #1

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/


#2

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’.


(Peter Niederwieser) #3

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


(Denis Stepanov) #4

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