문제

enter image description here

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>
도움이 되었습니까?

해결책

I ended up merging the differences into one Web Content folder and deleting the other as we realized that the other WebContent folder was not actually being used and needed to be deleted. This solved my problem without having to specify both web.xml files in Ant build script. Any better answer addressing the original question is most welcome.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top