Author: berndf
Date: Fri Apr 11 01:35:43 2008
New Revision: 647076
URL: http://svn.apache.org/viewvc?rev=647076&view=rev
Log:
inline xml configuration files imported through entities in james-config (only
for .war target) [JAMES-834]
Modified:
james/server/trunk/spring-deployment/build.xml
Modified: james/server/trunk/spring-deployment/build.xml
URL:
http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/build.xml?rev=647076&r1=647075&r2=647076&view=diff
==============================================================================
--- james/server/trunk/spring-deployment/build.xml (original)
+++ james/server/trunk/spring-deployment/build.xml Fri Apr 11 01:35:43 2008
@@ -348,18 +348,45 @@
<replace file="${spring-deployment.target.bin.dir}/run.bat" token=":"
value=";" />
</target>
- <target name="dist-war" >
+ <target name="eliminate-entity-references-in-james-config"
depends="package-aquire-config-files" >
+
+ <!-- inline the content of the XML entities files into
james-config.xml -->
+ <property name="listserverConfigEmptyContent" value=" this is content
for the comment " />
+ <loadfile property="listserverConfigContent"
srcfile="${basedir}/src/main/config/james/james-listmanager.xml" />
+ <replace
file="${spring-deployment.target.config.dir}/james-config.xml"
token="&listserverConfig;" value="${listserverConfigEmptyContent}" />
+
+ <property name="listserverStoresEmptyContent" value=" this is content
for the comment " />
+ <loadfile property="listserverStoresContent"
srcfile="${basedir}/src/main/config/james/james-liststores.xml" />
+ <replace
file="${spring-deployment.target.config.dir}/james-config.xml"
token="&listserverStores;" value="${listserverStoresEmptyContent}" />
+
+ <loadfile property="fetchmailConfigContent"
srcfile="${basedir}/src/main/config/james/james-fetchmail.xml" />
+ <replace
file="${spring-deployment.target.config.dir}/james-config.xml"
token="&fetchmailConfig;" value="${fetchmailConfigContent}" />
+
+ <loadfile property="jmsConfigContent"
srcfile="${basedir}/src/main/config/james/james-jms.xml" />
+ <replace
file="${spring-deployment.target.config.dir}/james-config.xml"
token="&jmsConfig;" value="${jmsConfigContent}" />
+
+ <loadfile property="smtphandlerchainConfigContent"
srcfile="${basedir}/src/main/config/james/james-smtphandlerchain.xml" />
+ <replace
file="${spring-deployment.target.config.dir}/james-config.xml"
token="&smtphandlerchainConfig;" value="${smtphandlerchainConfigContent}" />
+
+ </target>
+
+ <target name="dist-war" description="build a war file distribution"
depends="eliminate-entity-references-in-james-config" >
<war
destfile="${spring-deployment.dist.dir}/${name}-spring-deployment-${version}.war"
webxml="src/main/config/warfile/WEB-INF/web.xml" >
<fileset dir="${spring-deployment.target.dir}" ><include
name="NOTICE.txt" /></fileset>
<fileset dir="${spring-deployment.target.dir}" ><include
name="LICENSE.txt" /></fileset>
<lib dir="${spring-deployment.target.lib.dir}" />
- <zipfileset dir="${basedir}/src/main/config/james/"
prefix="WEB-INF/lib" >
+ <zipfileset dir="${spring-deployment.target.config.dir}"
prefix="WEB-INF/lib" >
<include name="log4j.properties" />
- <include name="james-config.xml" />
</zipfileset>
- <zipfileset dir="${basedir}/src/main/config/james/"
prefix="WEB-INF" >
+ <zipfileset dir="${spring-deployment.target.config.dir}"
prefix="WEB-INF" >
+ <include name="spring-beans.xml" />
+ <include name="james-assembly.xml" />
+ </zipfileset>
+ <zipfileset dir="${spring-deployment.target.config.dir}"
prefix="WEB-INF/classes" >
<exclude name="log4j.properties" />
+ <exclude name="spring-beans.xml" />
+ <exclude name="james-assembly.xml" />
</zipfileset>
</war>
</target>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]