[Yanel-commits] rev 45833 -
public/yanel/trunk/src/build/targets/webapp
michi at wyona.com
michi at wyona.com
Fri Dec 4 12:18:41 CET 2009
Author: michi
Date: 2009-12-04 12:18:41 +0100 (Fri, 04 Dec 2009)
New Revision: 45833
Modified:
public/yanel/trunk/src/build/targets/webapp/cluster.xml
Log:
enable access log file if configured within local.build.properties
Modified: public/yanel/trunk/src/build/targets/webapp/cluster.xml
===================================================================
--- public/yanel/trunk/src/build/targets/webapp/cluster.xml 2009-12-04 11:07:46 UTC (rev 45832)
+++ public/yanel/trunk/src/build/targets/webapp/cluster.xml 2009-12-04 11:18:41 UTC (rev 45833)
@@ -22,6 +22,7 @@
<replacetoken>@CNODE_ID@</replacetoken>
</replace>
<touch file="${log4j.path}/access-cnode1.log"/>
+ <antcall target="enable-access-log"/>
<antcall target="patch-tomcat-cluster-node-1-ssl-port"/>
@@ -50,6 +51,16 @@
</copy>
</target>
+ <target name="enable-access-log">
+ <echo>Enable access log</echo>
+ <xslt in="${tomcat1.home.dir}/webapps/${servlet.context.prefix}/WEB-INF/web.xml"
+ out="${tomcat1.home.dir}/webapps/${servlet.context.prefix}/WEB-INF/web.xml.tmp"
+ style="enable-access-log.xsl">
+ <param name="log-access" expression="${log-access}"/>
+ </xslt>
+ <move file="${tomcat1.home.dir}/webapps/${servlet.context.prefix}/WEB-INF/web.xml.tmp" tofile="${tomcat1.home.dir}/webapps/${servlet.context.prefix}/WEB-INF/web.xml"/>
+ </target>
+
<target name="patch-tomcat-cluster-node-1-ssl-port" if="property-tomcat1-ssl-port-is-set">
<echo>SSL port for tomcat is set</echo>
<xslt in="${tomcat1.home.dir}/webapps/${servlet.context.prefix}/WEB-INF/web.xml"
More information about the Yanel-commits
mailing list