[Yanel-commits] rev 42277 - public/yanel/trunk/tools/apache-tomcat

michi at wyona.com michi at wyona.com
Mon Apr 6 16:12:22 CEST 2009


Author: michi
Date: 2009-04-06 16:12:22 +0200 (Mon, 06 Apr 2009)
New Revision: 42277

Modified:
   public/yanel/trunk/tools/apache-tomcat/build.xml
Log:
timestamp and comment added

Modified: public/yanel/trunk/tools/apache-tomcat/build.xml
===================================================================
--- public/yanel/trunk/tools/apache-tomcat/build.xml	2009-04-06 14:05:14 UTC (rev 42276)
+++ public/yanel/trunk/tools/apache-tomcat/build.xml	2009-04-06 14:12:22 UTC (rev 42277)
@@ -1,7 +1,9 @@
 <?xml version="1.0"?>
-<project name="tomcat"
->
 
+<!-- Re-configures the conf/server.xml of Tomcat and creates a backup copy -->
+<!-- This script is executed by src/build/targets/continuous-integration/CI -->
+<project name="tomcat">
+
   <target name="configure-host">
     <property name="server.file"
      value="${tomcat.home.dir}/conf/server.xml"/>
@@ -24,8 +26,11 @@
 
     <!-- we need another intermediary file to swap the original file
      and the new one, which also can be handy if something goes wrong: -->
+    <tstamp>
+      <format property="TIMESTAMP" pattern="yyyyMMddhhmmss"/>
+    </tstamp>
     <property name="server.old.file"
-     value="${tomcat.home.dir}/conf/server-before-ports-were-patched.xml"/>
+     value="${tomcat.home.dir}/conf/server-before-ports-were-patched_${TIMESTAMP}.xml"/>
 
     <move file="${server.file}" tofile="${server.old.file}"/>
     <move file="${server.new.file}" tofile="${server.file}"/>



More information about the Yanel-commits mailing list