Browse Source

Trying cmd.exe /C build.bat

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1460473 13f79535-47bb-0310-9956-ffa450edef68
master
Nicolas Lalevee 12 years ago
parent
commit
5e75cf1296
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      launch-build.xml

+ 7
- 3
launch-build.xml View File

@@ -23,12 +23,16 @@
<property name="args" value="allclean test -Dignore.tests.failed=true -Doptional.jars.whenmanifestonly=skip" /> <property name="args" value="allclean test -Dignore.tests.failed=true -Doptional.jars.whenmanifestonly=skip" />


<condition property="launch.cmd" value="./build.sh">
<condition property="launch.cmd" value="${basedir}/build.sh">
<os family="unix" /> <os family="unix" />
</condition> </condition>
<condition property="launch.cmd" value="build.bat">
<condition property="launch.cmd" value="cmd.exe">
<os family="windows" /> <os family="windows" />
</condition> </condition>
<condition property="launch.args" value="/C &quot;${basedir}/build.bat ${args}&quot;">
<os family="windows" />
</condition>
<property name="launch.args" value="${args}" />


<target name="launch"> <target name="launch">
<fail unless="launch.cmd" message="Unsupported build platform" /> <fail unless="launch.cmd" message="Unsupported build platform" />
@@ -36,7 +40,7 @@
<property name="args" value="" /> <property name="args" value="" />
<echo message="Launching ${launch.cmd} ${args}" /> <echo message="Launching ${launch.cmd} ${args}" />
<exec executable="${launch.cmd}" failonerror="true"> <exec executable="${launch.cmd}" failonerror="true">
<arg line="${args}" />
<arg line="${launch.args}" />
</exec> </exec>
</target> </target>
</project> </project>

Loading…
Cancel
Save