knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmin...@apache.org
Subject git commit: Support build on windows better.
Date Tue, 19 Mar 2013 20:49:05 GMT
Updated Branches:
  refs/heads/master ee15d8117 -> a1cf1c823


Support build on windows better.


Project: http://git-wip-us.apache.org/repos/asf/incubator-knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-knox/commit/a1cf1c82
Tree: http://git-wip-us.apache.org/repos/asf/incubator-knox/tree/a1cf1c82
Diff: http://git-wip-us.apache.org/repos/asf/incubator-knox/diff/a1cf1c82

Branch: refs/heads/master
Commit: a1cf1c823c55ff1974fa46506b658a0e33548afd
Parents: ee15d81
Author: Kevin Minder <kevin.minder@hortonworks.com>
Authored: Tue Mar 19 16:49:01 2013 -0400
Committer: Kevin Minder <kevin.minder@hortonworks.com>
Committed: Tue Mar 19 16:49:01 2013 -0400

----------------------------------------------------------------------
 build.xml |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/a1cf1c82/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index bdcea12..958e306 100644
--- a/build.xml
+++ b/build.xml
@@ -25,6 +25,13 @@
     <property name="archive" value="target/gateway-${version}.zip"/>
     <property name="gateway_home" value="gateway-${version}"/>
 
+    <condition property="mvn.cmd" value="mvn">
+        <os family="unix" />
+    </condition>
+    <condition property="mvn.cmd" value="mvn.bat">
+        <os family="windows" />
+    </condition>
+
     <target name="init" description="Initialize the build.">
     </target>
 
@@ -33,7 +40,7 @@
     </target>
 
     <target name="build" depends="init" description="Build the product.">
-        <exec executable="mvn">
+        <exec executable="${mvn.cmd}">
             <arg value="-Prelease"/>
             <arg value="clean"/>
             <arg value="package"/>
@@ -63,7 +70,7 @@
     </target>
 
     <target name="site" description="Generate and copy the Apache web site.">
-        <exec executable="mvn">
+        <exec executable="${mvn.cmd}">
             <arg value="--file"/>
             <arg value="gateway-site/pom.xml"/>
             <arg value="site"/>


Mime
View raw message