You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ws...@apache.org on 2005/10/28 06:29:25 UTC
svn commit: r329090 - /struts/apps/trunk/mailreader/maven.xml
Author: wsmoak
Date: Thu Oct 27 21:29:13 2005
New Revision: 329090
URL: http://svn.apache.org/viewcvs?rev=329090&view=rev
Log:
Modified build to copy validator-rules.xml from core. (See: r328866)
Modified:
struts/apps/trunk/mailreader/maven.xml
Modified: struts/apps/trunk/mailreader/maven.xml
URL: http://svn.apache.org/viewcvs/struts/apps/trunk/mailreader/maven.xml?rev=329090&r1=329089&r2=329090&view=diff
==============================================================================
--- struts/apps/trunk/mailreader/maven.xml (original)
+++ struts/apps/trunk/mailreader/maven.xml Thu Oct 27 21:29:13 2005
@@ -1,10 +1,30 @@
<?xml version="1.0"?>
-<project>
+<project xmlns:j="jelly:core"
+ xmlns:ant="jelly:ant"
+ xmlns:maven="jelly:maven">
<postGoal name="war:webapp">
<!-- Include the source code in the mailreader webapp -->
<attainGoal name="copy-webapp-src"/>
+
+ <!-- copy config files from core -->
+ <ant:available file="${core.conf.share.dir}"
+ property="core.share.available" />
+ <j:choose>
+ <j:when test="${core.share.available}">
+ <ant:copy file="${core.conf.share.dir}/validator-rules.xml"
+ todir="${maven.war.webapp.dir}/WEB-INF"
+ overwrite="false"/>
+ </j:when>
+ <j:otherwise>
+ <ant:echo>
+ WARNING: ${core.conf.share.dir} not available;
+ some XML config files will not be copied.
+ </ant:echo>
+ </j:otherwise>
+ </j:choose>
+
</postGoal>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org