You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by km...@apache.org on 2013/03/19 21:49:05 UTC
git commit: Support build on windows better.
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 <ke...@hortonworks.com>
Authored: Tue Mar 19 16:49:01 2013 -0400
Committer: Kevin Minder <ke...@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"/>