[jboss-svn-commits] JBL Code SVN: r33844 - labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Jul 12 14:21:20 EDT 2010


Author: whitingjr
Date: 2010-07-12 14:21:19 -0400 (Mon, 12 Jul 2010)
New Revision: 33844

Modified:
   labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml
Log:
Added script to delete configuration.

Modified: labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml
===================================================================
--- labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml	2010-07-12 17:45:07 UTC (rev 33843)
+++ labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/build-api.xml	2010-07-12 18:21:19 UTC (rev 33844)
@@ -185,6 +185,34 @@
       </if>
    </target>
    
+   <target name="delete-remote-config">
+      <echo>Checking for delete remote file.</echo>
+      
+      <condition property="remove.file.property.exists" else="false">
+         <and>
+            <isset property="remove.file.name"/>
+         </and>
+      </condition>
+      
+      <echo>Status of all expected property : ${remove.file.property.exists}</echo>
+      <antcall target="delete-remote-file" inheritall="true"/>
+      
+   </target>
+   
+   <target name="delete-remote-file">
+      
+      <if>
+         <equals arg1="true" arg2="${remove.file.property.exists}"/>
+         <then>
+            <echo>Removing file ${remove.file.name} </echo>
+            <sshexec host="hornetq" username="root" password="${r_p}" command="rm -f ${remove.file.name}" />
+         </then>
+         <else>
+            <echo>No deletion of remote file.</echo>
+         </else>
+      </if>
+   </target>
+   
    <target name="substitute-local-config">
       <echo>Checking for configuration to replace local file.</echo>
       



More information about the jboss-svn-commits mailing list