From: peter r. <pet...@us...> - 2003-03-19 09:18:28
|
Update of /cvsroot/ant-contrib/ant-contrib/test/resources/logic In directory sc8-pr-cvs1:/tmp/cvs-serv12146/resources/logic Added Files: outofdate.xml Log Message: Add initial test for outofdate --- NEW FILE: outofdate.xml --- <project default="invalid"> <target name="invalid"> <fail>Don't call this file directly.</fail> </target> <taskdef resource="net/sf/antcontrib/antcontrib.properties"> <classpath location="${antcontrib.jar}"/> </taskdef> <target name="outofdate.init"> <!-- sources --> <mkdir dir="outofdate/source/1/2/3"/> <touch file="outofdate/source/newer.text"/> <touch file="outofdate/source/1/2/file.notdone"/> <touch file="outofdate/source/1/2/file.done"/> <touch file="outofdate/source/1/done.y"/> <touch file="outofdate/source/1/partial.y"/> <!-- generated --> <mkdir dir="outofdate/gen/1/2/3"/> <touch file="outofdate/gen/index.done"/> <touch file="outofdate/gen/1/2/file.done"/> <touch file="outofdate/gen/1/done.c"/> <touch file="outofdate/gen/1/done.h"/> <touch file="outofdate/gen/1/partial.c"/> </target> <target name="outofdate.test"> <outofdate outputsources="outofdate.sources" outputtargets="outofdate.targets" alltargets="outofdate.alltargets" outputsourcespath="outofdate.sources.path" outputtargetspath="outofdate.targets.path" > <sourcefiles> <fileset dir="outofdate/source"/> <pathelement path="outofdate.xml"/> </sourcefiles> <targetfiles path="outofdate/gen/index.done"/> <mapper type="glob" from="outofdate/source/1/2/*" to="outofdate/gen/1/2/*"/> <mapper type="glob" from="outofdate/source/*.y" to="outofdate/gen/*.c"/> <mapper type="glob" from="outofdate/source/*.y" to="outofdate/gen/*.h"/> <mapper type="glob" from="outofdate/source/newer.text" to="outofdate.xml"/> <sequential> <echo message="outofdate triggered"/> </sequential> </outofdate> <delete dir="outofdate"/> <pathconvert targetos="unix" refid="outofdate.sources.path" property="out.property"/> <echo message="OUT: [${out.property}]"/> </target> </project> |