You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2009/10/13 17:59:47 UTC

svn commit: r824824 - /incubator/uima/uimaj/trunk/uimaj/distr-superPom/pom.xml

Author: schor
Date: Tue Oct 13 15:59:46 2009
New Revision: 824824

URL: http://svn.apache.org/viewvc?rev=824824&view=rev
Log:
UIMA-1613 Make the common distr-superPom install work by conditionally skipping the ant-run tasks, which get executed because the superPom has an ant-run task not inside <pluginManagement>.

Modified:
    incubator/uima/uimaj/trunk/uimaj/distr-superPom/pom.xml

Modified: incubator/uima/uimaj/trunk/uimaj/distr-superPom/pom.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj/distr-superPom/pom.xml?rev=824824&r1=824823&r2=824824&view=diff
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj/distr-superPom/pom.xml (original)
+++ incubator/uima/uimaj/trunk/uimaj/distr-superPom/pom.xml Tue Oct 13 15:59:46 2009
@@ -88,12 +88,26 @@
               <goals><goal>run</goal></goals>
               <configuration>
                 <tasks>
-                  <delete dir="target/rat-src-dir"/>
-                  <delete dir="target/rat-bin-dir"/>
-                  <unzip dest="target/rat-src-dir"
-                         src="target/${assemblyFinalName}-src.zip"/>
-                  <unzip dest="target/rat-bin-dir"
-                         src="target/${assemblyFinalName}-bin.zip"/>                     
+                  <!-- set up ant-contrib extensions -->
+                  <typedef resource="net/sf/antcontrib/antlib.xml">
+                    <classpath refid="maven.dependency.classpath"/>
+                  </typedef>
+
+                  <!-- skip this if assemblyFinalName is undefined -->
+                  <!-- This happens when this pom is installed by itself -->
+                  <!-- because it's superpom has a ant-run instance -->
+
+                  <if>
+                    <isset property="assemblyFinalName"></isset>
+                    <then>
+                      <delete dir="target/rat-src-dir"/>
+                      <delete dir="target/rat-bin-dir"/>
+                      <unzip dest="target/rat-src-dir"
+                             src="target/${assemblyFinalName}-src.zip"/>
+                      <unzip dest="target/rat-bin-dir"
+                             src="target/${assemblyFinalName}-bin.zip"/>    
+                    </then>
+                  </if>                                   
                 </tasks>
               </configuration>
             </execution>