Create backups of existing configuration files anytime we do an install. Ant appears...
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 13 Sep 2007 16:33:38 +0000 (16:33 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 13 Sep 2007 16:33:38 +0000 (16:33 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2391 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

build.xml

index 999b58a..bc8509b 100755 (executable)
--- a/build.xml
+++ b/build.xml
                <mkdir dir="${idp.home}/logs" />
                <mkdir dir="${idp.home}/bin" />
                <mkdir dir="${idp.home}/war" />
-               <mkdir dir="${idp.home}/temp/metadata" />
+               <mkdir dir="${idp.home}/metadata" />
 
                <copy todir="${idp.home}/lib" preservelastmodified="true">
                        <fileset dir="${lib.dir}" />
                        <fileset file="${dist.dir}/${jar.name}" />
                        <fileset file="${build-lib.dir}/servlet-2.4.jar" />
                </copy>
+               
+               <if>
+                       <available file="${idp.home}/conf" />
+                       <then>
+                               <mkdir dir="${idp.home}/conf.bak" />
+                               <copy todir="${idp.home}/conf.bak" preservelastmodified="true">
+                                       <fileset dir="${idp.home}/conf" />
+                               </copy>
+                       </then>
+               </if>
 
                <copy todir="${idp.home}/conf" preservelastmodified="true" overwrite="${idp.overwrite-config}">
                        <fileset dir="${conf.dir}" />