You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jl...@apache.org on 2006/02/20 22:34:26 UTC

svn commit: r379245 - /geronimo/trunk/maven.xml

Author: jlaskowski
Date: Mon Feb 20 13:34:25 2006
New Revision: 379245

URL: http://svn.apache.org/viewcvs?rev=379245&view=rev
Log:
Introduce Maven2-based goals and a property to wire it into the build.

 + The m2 property is to ignite the build of the kernel module using Maven2
 + The goal: m2 is to create a template to execute Maven2 commands via goal property
 + The execmvn goal is to execute Maven2 shell script either mvn.bat or mvn based on OS (it surely needs more appropriate OS names)

Run maven -Dm2=true new to build Geronimo with the new goal and execute mvn install on the kernel module
Run maven m2 to execute mvn install on the kernel module only



Modified:
    geronimo/trunk/maven.xml

Modified: geronimo/trunk/maven.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/maven.xml?rev=379245&r1=379244&r2=379245&view=diff
==============================================================================
--- geronimo/trunk/maven.xml (original)
+++ geronimo/trunk/maven.xml Mon Feb 20 13:34:25 2006
@@ -71,6 +71,26 @@
         <attainGoal name="new3"/>
         <attainGoal name="new4"/>
         <attainGoal name="new5"/>
+        <j:if test="${m2}">
+            <attainGoal name="m2"/>
+        </j:if>
+    </goal>
+
+    <!-- ============= -->
+    <!--    Maven 2    -->
+    <!-- ============= -->
+    <goal name="m2">
+        <j:set var="goal" value="install" />
+        <attainGoal name="execmvn" />
+    </goal>
+
+    <goal name="execmvn">
+        <ant:exec executable="mvn.bat" os="Windows XP">
+            <ant:arg line="-Dmodule=kernel ${goal}" />
+        </ant:exec>
+        <ant:exec executable="mvn" os="unix,mac">
+            <ant:arg line="-Dmodule=kernel ${goal}" />
+        </ant:exec>
     </goal>
 
     <!-- ============= -->