Browse Source

Changing the verification process not to rely on isfileselected because I'm

too lazy to move it to the 1.6 branch right now when it's not even mine.  :)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277502 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 20 years ago
parent
commit
e1b0730f5e
1 changed files with 24 additions and 9 deletions
  1. +24
    -9
      src/etc/testcases/taskdefs/touch.xml

+ 24
- 9
src/etc/testcases/taskdefs/touch.xml View File

@@ -63,19 +63,34 @@
</compositemapper> </compositemapper>
</touch> </touch>


<fileset id="touchtest" file="touchtest">
<selector refid="map.selector" />
</fileset>

<fileset id="touchtestfoo" file="touchtestfoo">
<selector refid="map.selector" />
</fileset>

<fileset id="touchtestbar" file="touchtestbar">
<selector refid="map.selector" />
</fileset>

<pathconvert property="touchtest" pathsep=" "
refid="touchtest" setonempty="false" />

<pathconvert property="touchtestfoo" pathsep=" "
refid="touchtestfoo" setonempty="false" />

<pathconvert property="touchtestbar" pathsep=" "
refid="touchtestbar" setonempty="false" />

<fail> <fail>
<condition> <condition>
<not> <not>
<and> <and>
<isfileselected file="touchtest">
<selector refid="map.selector" />
</isfileselected>
<isfileselected file="touchtestfoo">
<selector refid="map.selector" />
</isfileselected>
<isfileselected file="touchtestbar">
<selector refid="map.selector" />
</isfileselected>
<isset property="touchtest" />
<isset property="touchtestfoo" />
<isset property="touchtestbar" />
</and> </and>
</not> </not>
</condition> </condition>


Loading…
Cancel
Save