Debian Codegraph @

test/resources/property/pathtofileset.xml

raw symbols SCIP
1 <project default="simple">
2 <taskdef resource="net/sf/antcontrib/antcontrib.properties">
3 <classpath location="${antcontrib.jar}"/>
4 </taskdef>
5
6 <target name="cleanup">
7 <delete quiet ="yes" dir="${test.dir}"/>
8 </target>
9
10 <target name="init">
11 <property name="test.dir" value="pathtofilesset"/>
12 <mkdir dir="${test.dir}/0/0"/>
13 <mkdir dir="${test.dir}/0/1"/>
14 <mkdir dir="${test.dir}/1/0"/>
15 <mkdir dir="${test.dir}/1/1"/>
16 <touch file="${test.dir}/0/0/0.java"/>
17 <touch file="${test.dir}/0/1/1.java"/>
18 <touch file="${test.dir}/1/0/2.java"/>
19 <touch file="${test.dir}/1/1/3.java"/>
20 </target>
21
22 <target name="simple" depends="init">
23 <path id="simple">
24 <fileset dir="${test.dir}/0" includes="**/*.java"/>
25 <fileset dir="${test.dir}/1" includes="**/*.java"/>
26 </path>
27 <pathtofileset dir="${test.dir}/0" pathrefid="simple"
28 ignoreNonRelative="yes" name="simple.0.fileset"/>
29 <pathconvert targetos="unix" refid="simple.0.fileset" property="simple.0.property"/>
30
31 <pathtofileset dir="${test.dir}/1" pathrefid="simple"
32 ignoreNonRelative="yes" name="simple.1.fileset"/>
33 <pathconvert targetos="unix" refid="simple.1.fileset" property="simple.1.property"/>
34 </target>
35
36 <target name="simple-exception" depends="init">
37 <path id="simple">
38 <fileset dir="${test.dir}/0" includes="**/*.java"/>
39 <fileset dir="${test.dir}/1" includes="**/*.java"/>
40 </path>
41 <pathtofileset dir="${test.dir}/0" pathrefid="simple"
42 name="simple.0.fileset"/>
43 </target>
44
45 </project>