Browse Source

Enabled echo tests only for *nix & cygwin, like others.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276695 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 21 years ago
parent
commit
a34ad0e8fa
1 changed files with 12 additions and 5 deletions
  1. +12
    -5
      src/etc/testcases/taskdefs/exec/apply.xml

+ 12
- 5
src/etc/testcases/taskdefs/exec/apply.xml View File

@@ -21,6 +21,16 @@
<isset property="sed.exe.executable"/>
</or>
</condition>
<!-- UNIX -->
<available file="echo" filepath="${env.PATH}" property="echo.executable"/>
<!-- CYGWIN -->
<available file="echo.exe" filepath="${env.PATH}" property="echo.exe.executable"/>
<condition property="echo.can.run">
<or>
<isset property="echo.executable"/>
<isset property="echo.exe.executable"/>
</or>
</condition>
</target>

<target name="xyz">
@@ -303,12 +313,9 @@
</apply>
</target>

<target name="ignoremissing">
<target name="ignoremissing" depends="init,xyz" if="echo.can.run">
<filelist id="xylist" dir="${basedir}" files="x,y" />
<filelist id="xyzlist" dir="${basedir}" files="x,y,z" />

<touch file="x" />
<touch file="y" />
<delete file="z" />

<condition property="pad" value="">
<or>


Loading…
Cancel
Save