Only copy web.xml if it exists

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114091 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion
2003-09-24 05:34:50 +00:00
parent 476a5e4fff
commit 9ed709c811

View File

@@ -99,9 +99,11 @@
</ant:copy>
</j:if>
<ant:copy file="${maven.war.webxml}"
tofile="${webapp.build.webinf}/web.xml"
overwrite="true" />
<util:available file="${maven.war.webxml}">
<ant:copy file="${maven.war.webxml}"
tofile="${webapp.build.webinf}/web.xml"
overwrite="true" />
</util:available>
<j:forEach var="lib" items="${pom.artifacts}">
<j:set var="dep" value="${lib.dependency}"/>