[jboss-cvs] JBossAS SVN: r110783 - branches/JBPAPP_5_1/build.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Feb 25 09:39:29 EST 2011


Author: fnasser at redhat.com
Date: 2011-02-25 09:39:29 -0500 (Fri, 25 Feb 2011)
New Revision: 110783

Modified:
   branches/JBPAPP_5_1/build/build.xml
Log:
Add to main build.xml : 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/build/build.xml
===================================================================
--- branches/JBPAPP_5_1/build/build.xml	2011-02-25 14:36:28 UTC (rev 110782)
+++ branches/JBPAPP_5_1/build/build.xml	2011-02-25 14:39:29 UTC (rev 110783)
@@ -1554,16 +1554,25 @@
   </target>
 
    <!-- Unsigns all jars (rars, wars, ears) in JBoss AS located in ${install.root},
-	original JBoss AS with signed jars (rars, wars, ears) is moved to ${install.root}.signed. -->
+	original JBoss AS with signed jars (rars, wars, ears) is moved to ${install.root}.signed.
+	Property unsign.supressBackup="true", disables backup of original signed JBoss AS. -->
    <target name="unsign" description="Unsigns all jars in current JBoss AS." if="build.signed">
      <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"/>
 
-     <copy toDir="${install.root}.signed">
-       <fileSet dir="${install.root}"/>
-     </copy>
+    <!-- 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>
 
      <for param="file">
        <path>



More information about the jboss-cvs-commits mailing list