summaryrefslogtreecommitdiffstats
path: root/test/antunit/property/pathtofileset.xml
diff options
context:
space:
mode:
Diffstat (limited to 'test/antunit/property/pathtofileset.xml')
-rw-r--r--test/antunit/property/pathtofileset.xml75
1 files changed, 0 insertions, 75 deletions
diff --git a/test/antunit/property/pathtofileset.xml b/test/antunit/property/pathtofileset.xml
deleted file mode 100644
index 8ce9292..0000000
--- a/test/antunit/property/pathtofileset.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<project name="pathtofileset"
- xmlns:au="antlib:org.apache.ant.antunit"
- xmlns:antcontrib="antlib:net.sf.antcontrib">
- <import file="../common.xml" />
-
- <target name="setUp" depends="common.setUp">
- <property name="test.dir" value="${root.dir}/target/resources/pathtofileset"/>
- <mkdir dir="${test.dir}/0/0"/>
- <mkdir dir="${test.dir}/0/1"/>
- <mkdir dir="${test.dir}/1/0"/>
- <mkdir dir="${test.dir}/1/1"/>
- <touch file="${test.dir}/0/0/0.java"/>
- <touch file="${test.dir}/0/1/1.java"/>
- <touch file="${test.dir}/1/0/2.java"/>
- <touch file="${test.dir}/1/1/3.java"/>
- </target>
-
- <target name="testSimple">
- <path id="simple">
- <fileset dir="${test.dir}/0" includes="**/*.java"/>
- <fileset dir="${test.dir}/1" includes="**/*.java"/>
- </path>
-
- <antcontrib:pathtofileset
- dir="${test.dir}/0"
- pathrefid="simple"
- ignoreNonRelative="yes"
- name="simple.0.fileset"/>
-
- <pathconvert
- targetos="unix"
- refid="simple.0.fileset"
- property="simple.0.property"/>
-
- <antcontrib:pathtofileset
- dir="${test.dir}/1"
- pathrefid="simple"
- ignoreNonRelative="yes"
- name="simple.1.fileset"/>
-
- <pathconvert
- targetos="unix"
- refid="simple.1.fileset"
- property="simple.1.property"/>
-
-
- <au:assertTrue>
- <and>
- <contains string="${simple.0.property}" substring="0.java" />
- <contains string="${simple.0.property}" substring="1.java" />
- <not><contains string="${simple.0.property}" substring="2.java" /></not>
- <not><contains string="${simple.0.property}" substring="3.java" /></not>
- <contains string="${simple.1.property}" substring="2.java" />
- <contains string="${simple.1.property}" substring="3.java" />
- <not><contains string="${simple.1.property}" substring="0.java" /></not>
- <not><contains string="${simple.1.property}" substring="1.java" /></not>
- </and>
- </au:assertTrue>
- </target>
-
- <target name="testSimpleException">
- <path id="simple">
- <fileset dir="${test.dir}/0" includes="**/*.java"/>
- <fileset dir="${test.dir}/1" includes="**/*.java"/>
- </path>
-
- <au:expectfailure expectedMessage="is not relative to">
- <antcontrib:pathtofileset
- dir="${test.dir}/0"
- pathrefid="simple"
- name="simple.0.fileset"/>
- </au:expectfailure>
- </target>
-
-</project> \ No newline at end of file