felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r516042 - /incubator/felix/trunk/build.xml
Date Thu, 08 Mar 2007 13:49:33 GMT
Author: rickhall
Date: Thu Mar  8 05:49:33 2007
New Revision: 516042

URL: http://svn.apache.org/viewvc?view=rev&rev=516042
Log:
Applied some changes suggested by Felix Meschberger to fix a bug that 
caused Maven to not be executed under Windows.

Modified:
    incubator/felix/trunk/build.xml

Modified: incubator/felix/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/build.xml?view=diff&rev=516042&r1=516041&r2=516042
==============================================================================
--- incubator/felix/trunk/build.xml (original)
+++ incubator/felix/trunk/build.xml Thu Mar  8 05:49:33 2007
@@ -17,45 +17,55 @@
  under the License.
 -->
 <project default="all">
-    <target name="clean">
-        <exec executable="mvn" failonerror="true">
+    <target name="init">
+        <condition property="mvn" value="mvn.bat">
+            <os family="dos" />
+        </condition>
+        <condition property="mvn" value="mvn">
+            <not>
+                <isset property="mvn" />
+            </not>
+        </condition>
+    </target>
+    <target name="clean" depends="init">
+        <exec executable="${mvn}" failonerror="true">
             <arg line="-Dpackaging=bundle clean" />
         </exec>
-        <exec executable="mvn" failonerror="true">
+        <exec executable="${mvn}" failonerror="true">
             <arg line="-Dpackaging=osgi-bundle clean" />
         </exec>
-        <exec executable="mvn" failonerror="true">
+        <exec executable="${mvn}" failonerror="true">
             <arg line="-Dpackaging=ipojo-bundle clean" />
         </exec>
-        <exec executable="mvn" failonerror="true">
+        <exec executable="${mvn}" failonerror="true">
             <arg line="-Dpackaging=osgi-bundle-mosgi clean" />
         </exec>
     </target>
-    <target name="install">
-        <exec executable="mvn" failonerror="true">
+    <target name="install" depends="init">
+        <exec executable="${mvn}" failonerror="true">
             <arg line="-Dpackaging=bundle install" />
         </exec>
-        <exec executable="mvn" failonerror="true">
+        <exec executable="${mvn}" failonerror="true">
             <arg line="-Dpackaging=osgi-bundle install" />
         </exec>
-        <exec executable="mvn" failonerror="true">
+        <exec executable="${mvn}" failonerror="true">
             <arg line="-Dpackaging=ipojo-bundle install" />
         </exec>
-        <exec executable="mvn" failonerror="true">
+        <exec executable="${mvn}" failonerror="true">
             <arg line="-Dpackaging=osgi-bundle-mosgi install" />
         </exec>
     </target>
-    <target name="all">
-        <exec executable="mvn" failonerror="true">
+    <target name="all" depends="init">
+        <exec executable="${mvn}" failonerror="true">
             <arg line="-Dpackaging=bundle clean install" />
         </exec>
-        <exec executable="mvn" failonerror="true">
+        <exec executable="${mvn}" failonerror="true">
             <arg line="-Dpackaging=osgi-bundle clean install" />
         </exec>
-        <exec executable="mvn" failonerror="true">
+        <exec executable="${mvn}" failonerror="true">
             <arg line="-Dpackaging=ipojo-bundle clean install" />
         </exec>
-        <exec executable="mvn" failonerror="true">
+        <exec executable="${mvn}" failonerror="true">
             <arg line="-Dpackaging=osgi-bundle-mosgi clean install" />
         </exec>
     </target>



Mime
View raw message