[jboss-cvs] JBossAS SVN: r110779 - branches/JBPAPP_5_1/testsuite.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Feb 25 05:45:52 EST 2011


Author: jcosta at redhat.com
Date: 2011-02-25 05:45:52 -0500 (Fri, 25 Feb 2011)
New Revision: 110779

Modified:
   branches/JBPAPP_5_1/testsuite/build.xml
Log:
JBPAPP-5989 - Added the ability to not backup the original distribution, which may save some time for the unsign process

Modified: branches/JBPAPP_5_1/testsuite/build.xml
===================================================================
--- branches/JBPAPP_5_1/testsuite/build.xml	2011-02-25 08:53:01 UTC (rev 110778)
+++ branches/JBPAPP_5_1/testsuite/build.xml	2011-02-25 10:45:52 UTC (rev 110779)
@@ -1050,17 +1050,26 @@
    </target>
    
    <!-- Unsigns all jars (rars, wars, ears) in JBoss AS located in ${jboss.dist},
-	original JBoss AS with signed jars (rars, wars, ears) is moved to ${jboss.dist}.signed. -->
+	original JBoss AS with signed jars (rars, wars, ears) is moved to ${jboss.dist}.signed.
+	Property unsign.supressBackup="true", disables backup of original signed JBoss AS. -->
    <target name="unsign" description="Unsigns all jars in current JBoss AS.">
      <taskdef resource="net/sf/antcontrib/antlib.xml"
        classpath="${project.tools}/lib/ant-contrib-1.0b3.jar"/>  <!-- ant-contrib jar location -->
      <property name="sf" value="JBOSSCOD.SF"/>
      <property name="rsa" value="JBOSSCOD.RSA"/>
+ 
+    <!-- Check if backup is needed -->
+    <if>
+      <not>
+	<equals arg1="${unsign.supressBackup}" arg2="true" />
+      </not>
+      <then>
+	<copy toDir="${jboss.dist}.signed">
+	  <fileSet dir="${jboss.dist}"/>
+	</copy>
+      </then>
+    </if>
 
-     <copy toDir="${jboss.dist}.signed">
-       <fileSet dir="${jboss.dist}"/>
-     </copy>
-
      <for param="file">
        <path>
 	 <fileset dir="${jboss.dist}">
@@ -1081,7 +1090,6 @@
 	  <move file="@{file}-unsigned" tofile="@{file}"/> 
        </sequential>
      </for>
-     
 
    </target>
    



More information about the jboss-cvs-commits mailing list