[jboss-svn-commits] JBL Code SVN: r31837 - labs/jbosstm/trunk/maven.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Feb 25 08:43:07 EST 2010


Author: jhalliday
Date: 2010-02-25 08:43:07 -0500 (Thu, 25 Feb 2010)
New Revision: 31837

Modified:
   labs/jbosstm/trunk/maven/build.xml
Log:
Tweak maven build file to work in JTA only env. JBTM-687


Modified: labs/jbosstm/trunk/maven/build.xml
===================================================================
--- labs/jbosstm/trunk/maven/build.xml	2010-02-25 13:24:40 UTC (rev 31836)
+++ labs/jbosstm/trunk/maven/build.xml	2010-02-25 13:43:07 UTC (rev 31837)
@@ -34,6 +34,12 @@
         Utility functions for build time 3rd party dependency processing.
     </description>
 
+    <taskdef resource="net/sf/antcontrib/antlib.xml">
+        <classpath>
+            <pathelement location="../antbuildsystem/ant-contrib-1.0b3.jar"/>
+        </classpath>
+    </taskdef>
+
     <property name="ext.lib.src" value="../ext"/>
     <property name="ext.lib.dest" value="../build/extlib"/>
 
@@ -73,15 +79,20 @@
             </fileset>
         </copy>
 
-        <!-- we use a local copy of JacORB for build/test as we need bits of it that are not in mvn.
-            However, we should ensure the AS has not upgraded or we'll wind up running on an untested version: -->
-        <checksum file="${ext.lib.dest}/jacorb.jar" property="as-jacorb-md5"/>
-        <checksum file="../ArjunaJTS/jacorb/lib/jacorb.jar" property="local-jacorb-md5"/>
-        <fail message="WARNING: effective JacORB version does not match JBossAS JacORB version. This is bad. I'm sulking. Edit maven/build.xml if you want to live dangerously, or go fix the problem.">
-            <condition>
-                <not><equals arg1="${as-jacorb-md5}" arg2="${local-jacorb-md5}"/></not>
-            </condition>
-        </fail>
+        <if>
+            <available file="@{dir}/@{artifact}-sources.jar"/>
+            <then>
+                <!-- we use a local copy of JacORB for build/test as we need bits of it that are not in mvn.
+                However, we should ensure the AS has not upgraded or we'll wind up running on an untested version: -->
+                <checksum file="${ext.lib.dest}/jacorb.jar" property="as-jacorb-md5"/>
+                <checksum file="../ArjunaJTS/jacorb/lib/jacorb.jar" property="local-jacorb-md5"/>
+                <fail message="WARNING: effective JacORB version does not match JBossAS JacORB version. This is bad. I'm sulking. Edit maven/build.xml if you want to live dangerously, or go fix the problem.">
+                    <condition>
+                        <not><equals arg1="${as-jacorb-md5}" arg2="${local-jacorb-md5}"/></not>
+                    </condition>
+                </fail>
+            </then>
+        </if>
 
     </target>
 



More information about the jboss-svn-commits mailing list