openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r619770 - in /openjpa/trunk/openjpa-persistence-jdbc: pom.xml src/main/ant/enhancer.xml
Date Fri, 08 Feb 2008 05:18:46 GMT
Author: mikedd
Date: Thu Feb  7 21:18:44 2008
New Revision: 619770

URL: http://svn.apache.org/viewvc?rev=619770&view=rev
Log:
OPENJPA-374

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/pom.xml
    openjpa/trunk/openjpa-persistence-jdbc/src/main/ant/enhancer.xml

Modified: openjpa/trunk/openjpa-persistence-jdbc/pom.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/pom.xml?rev=619770&r1=619769&r2=619770&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/pom.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/pom.xml Thu Feb  7 21:18:44 2008
@@ -279,14 +279,16 @@
                         <configuration>
                             <tasks>
                                 <ant antfile="src/main/ant/enhancer.xml"
-                                    target="enhance.all.entities"
+                                    target="enhance"
                                     inheritRefs="true">
                                     <!--
-                                      InheritAll doesn't seem to work. Pass in
-                                      properties manually.
-                                     -->
-                                    <property name="maven.test.skip" 
-                                        value="${maven.test.skip}"/>
+                                        InheritAll doesn't seem to work. Pass in
+                                        properties manually.
+                                    -->
+                                    <property name="maven.test.skip"
+                                        value="${maven.test.skip}" />
+                                    <property name="test"
+                                        value="${test}" />
                                     <property name="outdir"
                                         value="${project.build.outputDirectory}" />
                                     <property

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/main/ant/enhancer.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/main/ant/enhancer.xml?rev=619770&r1=619769&r2=619770&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/main/ant/enhancer.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/main/ant/enhancer.xml Thu Feb  7 21:18:44 2008
@@ -31,18 +31,32 @@
         <istrue value="${maven.test.skip}" />
     </condition>
 
+    <condition property="test.isfalse">
+        <equals arg1="${test}" arg2="false" />
+    </condition>
+
+    <!-- ================================= 
+          target: enhance              
+         ================================= -->
+    <target name="enhance"
+            description="--> run the enhancer unless test=false"
+            unless="test.isfalse">
+        <antcall target="enhance.all.entities"
+                 inheritall="true"
+                 inheritrefs="true" />
+    </target>
+
     <!-- ================================= 
           target: enhance.all.entities              
          ================================= -->
     <target name="enhance.all.entities"
-            depends=""
             description="--> enhance the test entities"
             unless="maven.test.skip.istrue">
-        
+        <echo> running enhancer</echo>
         <!-- 
             Inherited references won't be present until the task is called. 
             Therefore the path definition needs to stay inside the task.
-          --> 
+          -->
         <path id="cp">
             <path refid="maven.test.classpath" />
             <path refid="maven.compile.classpath" />



Mime
View raw message