From: Matt I. <mat...@us...> - 2003-04-10 14:20:49
|
Update of /cvsroot/ant-contrib/ant-contrib/test/resources/logic In directory sc8-pr-cvs1:/tmp/cvs-serv12778/test/resources/logic Added Files: latesttimestamp.xml Log Message: Add test cases for latesttimestamp --- NEW FILE: latesttimestamp.xml --- <project> <taskdef resource="net/sf/antcontrib/antcontrib.properties"> <classpath location="${antcontrib.jar}"/> </taskdef> <property name="test.dir" value="latesttimestamp"/> <property name="test.file1" location="${test.dir}/file1.txt" /> <property name="test.file2" location="${test.dir}/file2.txt" /> <property name="test.dir1" location="${test.dir}/dir1" /> <property name="test.dir2" location="${test.dir}/dir2" /> <filelist id="test.files" dir="${test.dir}"> <include name="*.txt" /> </filelist> <path id="test.files.path"> <filelist refid="test.files" /> </path> <dirlist id="test.dirs" dir="${test.dir}"> <include name="dir*" /> </dirlist> <path id="test.dirs.path"> <dirlist id="test.dirs" /> </path> <target name="init"> <delete quiet ="yes" dir="${test.dir}"/> <mkdir quiet="yes" dir="${test.dir}"/> <touch quiet="yes" file="${test.dir}/file1.txt" /> <touch quiet="yes" file="${test.dir}/file2.txt" /> <mkdir quiet="yes" dir="${test.dir}/dir1"/> <mkdir quiet="yes" dir="${test.dir}/dir2"/> </target> <target name="teardown"> <delete quiet="yes" dir="${test.dir}" /> </target> <target name="filestamp.fl" depends="init"> <latesttimestamp property="latest.fl.tstamp"> <path> <filelist id="test.files" /> </path> </latesttimestamp> <echo message="${latest.fl.tstamp}" /> </target> <target name="filestamp.pr" depends="init"> <latesttimestamp property="latest.pr.tstamp" pathref="test.files.path" /> <echo message="${latest.pr.tstamp}" /> </target> <target name="dirstamp.dl" depends="init"> <latesttimestamp property="latest.dl.tstamp"> <path> <dirlist id="test.dirs" /> </path> </latesttimestamp> <echo message="${latest.dl.tstamp}" /> </target> <target name="dirstamp.pr" depends="init"> <latesttimestamp property="latest.pr.tstamp" pathref="test.dirs.path" /> <echo message="${latest.pr.tstamp}" /> </target> </project> |