From: Stefan B. <bo...@us...> - 2003-01-20 16:46:35
|
Update of /cvsroot/ant-contrib/ant-contrib/test/resources/logic In directory sc8-pr-cvs1:/tmp/cvs-serv15438/test/resources/logic Added Files: trycatch.xml Log Message: Initial <trycatch> tests --- NEW FILE: trycatch.xml --- <project default="invalid"> <target name="invalid"> <fail>Don't call this file directly.</fail> </target> <target name="setup"> <taskdef resource="net/sf/antcontrib/antcontrib.properties"> <classpath location="${antcontrib.jar}"/> </taskdef> </target> <target name="fullTest" depends="setup"> <trycatch property="foo" reference="bar"> <try> <fail>Tada!</fail> </try> <catch> <echo>In <catch>.</echo> </catch> <finally> <echo>In <finally>.</echo> </finally> </trycatch> </target> </project> |