Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6
-
Fix Version/s: 1.6.2
-
Labels:None
-
Number of attachments :
Description
The war:war-resources goal don not use the ant filter whern copying the resources to the target directory.
here is the replacement goal as modified for using the filtering. I only added the (filtering="on") on the two
ant:copy tags.
<goal name="war:war-resources" prereqs="war:init"
description="Copy webapp resources to target directory">
<ant:mkdir dir="$
<j:set var="webapp.build.webinf"
value="${maven.war.webapp.dir}
/WEB-INF"/>
<ant:mkdir dir="$
<j:if test="${webSourcesPresent == 'true'}">
<ant:copy todir="${maven.war.webapp.dir}"
filtering="on"
preservelastmodified="true">
<ant:fileset dir="${maven.war.src}"
includes="${maven.war.src.includes}"
excludes="${maven.war.src.excludes}">
</ant:fileset>
</ant:copy>
</j:if>
<util:available file="${maven.war.webxml}">
<ant:copy file="${maven.war.webxml}"
filtering="on"
tofile="${webapp.build.webinf}
/web.xml"
overwrite="true" />
</util:available>
</goal>
Issue Links
- is related to
-
MPWAR-68
corrupt images after copy
-