diff options
author | mattinger <[email protected]> | 2006-07-06 21:53:00 +0000 |
---|---|---|
committer | mattinger <[email protected]> | 2006-07-06 21:53:00 +0000 |
commit | 1159111b7a71b72eb04326df33211e1733f7e742 (patch) | |
tree | f0a80c384f633e521649654ab78e6239cf5e0d6f /test/resources/property/pathtofileset.xml |
Initial addition into subversion with build script changes
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@5 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'test/resources/property/pathtofileset.xml')
-rw-r--r-- | test/resources/property/pathtofileset.xml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/test/resources/property/pathtofileset.xml b/test/resources/property/pathtofileset.xml new file mode 100644 index 0000000..b330cdf --- /dev/null +++ b/test/resources/property/pathtofileset.xml @@ -0,0 +1,45 @@ +<project default="simple"> + <taskdef resource="net/sf/antcontrib/antcontrib.properties"> + <classpath location="${antcontrib.jar}"/> + </taskdef> + + <target name="cleanup"> + <delete quiet ="yes" dir="${test.dir}"/> + </target> + + <target name="init"> + <property name="test.dir" value="pathtofilesset"/> + <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="simple" depends="init"> + <path id="simple"> + <fileset dir="${test.dir}/0" includes="**/*.java"/> + <fileset dir="${test.dir}/1" includes="**/*.java"/> + </path> + <pathtofileset dir="${test.dir}/0" pathrefid="simple" + ignoreNonRelative="yes" name="simple.0.fileset"/> + <pathconvert targetos="unix" refid="simple.0.fileset" property="simple.0.property"/> + + <pathtofileset dir="${test.dir}/1" pathrefid="simple" + ignoreNonRelative="yes" name="simple.1.fileset"/> + <pathconvert targetos="unix" refid="simple.1.fileset" property="simple.1.property"/> + </target> + + <target name="simple-exception" depends="init"> + <path id="simple"> + <fileset dir="${test.dir}/0" includes="**/*.java"/> + <fileset dir="${test.dir}/1" includes="**/*.java"/> + </path> + <pathtofileset dir="${test.dir}/0" pathrefid="simple" + name="simple.0.fileset"/> + </target> + +</project> |