68 lines
3.0 KiB
XML
68 lines
3.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- Already definded:
|
|
ccm.project.dir: base dir of the development project
|
|
app.server.bundles.zip name of the installation file
|
|
app.server.parent.dir name of the dir to install into the server into
|
|
app.server.deploy.dir dir the server are installed into (i.e. CATALINA_HOME)
|
|
app.server.conf.dir name of the servers configuration dir
|
|
webapp.dist.dir distribution dir for web applications -->
|
|
|
|
<project name="load">
|
|
|
|
<target name="load-bundle">
|
|
<echo>Loading bundle ${ccm.bundle.folder} into ${ccm.home}</echo>
|
|
<copy file="${ccm.bundle.folder}/cfg/applications.cfg"
|
|
tofile=".tmp.applications.cfg" overwrite="yes" />
|
|
<replaceregexp file=".tmp.applications.cfg" match="#.*" replace="" byline="true" />
|
|
<replaceregexp file=".tmp.applications.cfg"
|
|
match="[ \t\r\n]+" replace=" " flags="gs" />
|
|
<loadfile property="applications" srcFile=".tmp.applications.cfg" />
|
|
<delete file=".tmp.applications.cfg"/>
|
|
<tstamp>
|
|
<format pattern="yyyymmddhhmmss" property="timestamp" />
|
|
</tstamp>
|
|
<!-- nolonger in use
|
|
<move file="${app.server.conf.dir}/registry"
|
|
tofile="${app.server.conf.dir}/registry.${timestamp}" preservelastmodified="yes"
|
|
failonerror="no" verbose="true" />
|
|
-->
|
|
<java classname="com.arsdigita.packaging.MasterTool"
|
|
classpathref="ccm.classpath" fork="yes">
|
|
<sysproperty key="ccm.home" value="${ccm.home}" />
|
|
<sysproperty key="log4j.configuration"
|
|
value="file:runtime/${app.server.bundles.name}/conf/log4j.xml" />
|
|
<sysproperty key="java.protocol.handler.pkgs"
|
|
value="${java.protocol.handler.pkgs}" />
|
|
<arg line="load ${applications} --parameter-file ${bundle.folder}/cfg/integration.properties" />
|
|
</java>
|
|
</target>
|
|
|
|
<target name="load-init">
|
|
<echo>load ${applications} --init</echo>
|
|
<java classname="com.arsdigita.packaging.MasterTool"
|
|
classpathref="ccm.classpath" fork="yes">
|
|
<sysproperty key="ccm.home" value="${ccm.home}" />
|
|
<sysproperty key="log4j.configuration"
|
|
value="file:runtime/${app.server.bundles.name}/conf/log4j.xml" />
|
|
<sysproperty key="java.protocol.handler.pkgs"
|
|
value="${java.protocol.handler.pkgs}" />
|
|
<arg line="load ${applications} --init" />
|
|
</java>
|
|
</target>
|
|
|
|
<target name="load">
|
|
<echo>load ${applications}</echo>
|
|
<java classname="com.arsdigita.packaging.MasterTool"
|
|
classpathref="ccm.classpath" fork="yes">
|
|
<sysproperty key="ccm.home" value="${ccm.home}" />
|
|
<sysproperty key="log4j.configuration"
|
|
value="file:runtime/${app.server.bundles.name}/conf/log4j.xml" />
|
|
<sysproperty key="java.protocol.handler.pkgs"
|
|
value="${java.protocol.handler.pkgs}" />
|
|
<arg line="load ${applications}" />
|
|
</java>
|
|
</target>
|
|
|
|
</project>
|