質問

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