dion 2003/09/23 22:34:50
Modified: src/plugins-build/war plugin.jelly
Log:
Only copy web.xml if it exists
Revision Changes Path
1.30 +5 -3 maven/src/plugins-build/war/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/maven/src/plugins-build/war/plugin.jelly,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- plugin.jelly 24 Sep 2003 05:21:45 -0000 1.29
+++ plugin.jelly 24 Sep 2003 05:34:50 -0000 1.30
@@ -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}"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]