[jboss-cvs] JBossAS SVN: r110690 - branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Feb 16 17:09:14 EST 2011


Author: thauser at redhat.com
Date: 2011-02-16 17:09:12 -0500 (Wed, 16 Feb 2011)
New Revision: 110690

Modified:
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/build.xml
Log:
commit to make JBPAPP-5938 easier to implement. more robust checking on the backup property. 

Modified: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/build.xml
===================================================================
--- branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/build.xml	2011-02-16 19:04:40 UTC (rev 110689)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/build.xml	2011-02-16 22:09:12 UTC (rev 110690)
@@ -17,7 +17,11 @@
    <property name="lib.dir" value="lib"/>
    <property name="resources.dir" value="resources"/>
    <property name="backup.suffix" value="-backup"/>
-   
+   <property name="backup" value="false"/>
+   <condition property="backupTrue">
+   	<equals arg1="${backup}" arg2="true"/>
+   </condition>
+
    <target name="install" depends="removeCommon, removeClient, addCommon, addClient">
 
       <antcall target="removeConfig">
@@ -141,7 +145,7 @@
       <antcall target="createBackup"></antcall>
    </target>
 
-   <target name="createBackup" if="backup">
+   <target name="createBackup" if="backupTrue">
       <property name="backup.config" value="${config}${backup.suffix}"/>
       <echo>Create HornetQ dedicated backup profile for ${config}</echo>
       <mkdir dir="${jboss_home}/server/${backup.config}"/>



More information about the jboss-cvs-commits mailing list