gradle - How to place context.xml in war's META-INF? -
i building webapp through gradle's war plugin. in order disable tomcat's session persistence, need place file context.xml
in meta-inf
directory of war's root.
i attempted following:
- create file
src/main/webapp/meta-inf/context.xml
of main project - create file
src/main/resources/meta-inf/context.xml
of main project
however, when build project using gradle clean war
, produced war file contains meta-inf
manifest.mf
in it. if directory gets overridden.
how place context.xml
in war?
src/main/webapp/meta-inf/context.xml
correct , works fine me. chances went wrong somewhere, or there problem build script.
Comments
Post a Comment