denis1
(Denis Stepanov)
May 6, 2013, 10:33am
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/
daz
May 6, 2013, 10:55am
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’.
‘/META-INF/MANIFEST.MF’ is correct. After all, the War format is an extension of the Jar format.
denis1
(Denis Stepanov)
May 6, 2013, 11:21am
4
It looks like you’re right, it isn’t possible to read MANIFEST from war’s classpath.