I have been tasked with developing Jenkins build for this legacy Java web project. To my surprise I am first trying to figure out what could be the reason to have two WebContent folders and is it even "OK" to have such a structure? Also, while packaging how should I list both the webxmls? This is what I have right now:
<target name="packageWar" depends="packageJars">
<war destfile="../ear/${WAR_FILENAME}" webxml="Web Content/WEB-INF/web.xml">
<classes dir="Web Content/WEB-INF/classes" />
<lib dir="Web Content/WEB-INF/lib" />
<fileset dir="Web Content" excludes="WEB-INF/lib/**/*,WEB-INF/classes/**/*" />
.
.
.
</war>
</target>