Catch try task for ant:
<project name="main" default="compile"
xmlns:antelope="antlib:ise.antelope.tasks">
<target name="dca-try">
<exec dir="./blah" executable="cmd" osfamily="Windows"
failonerror="false">
<arg line="blah blah blah "/>
</exec>
<antelope:try>
<echo message="logging blah:${logdir}/dca.log"></echo>
<record name="${logdir}/blah.log" emacsmode="true" append="no"
action="start"></record>
<exec dir="./blah" executable="cmd" osfamily="Windows"
failonerror="true">
<arg line="blah"/>
</exec>
<record name="${logdir}/blah.log" action="stop"></record>
<antelope:catch>
<property name="build.failed" value="blah"/>
</antelope:catch>
<antelope:finally>
<!-- rollback files -->
<fail message="blah compile failed">
<condition >
<matches pattern="blah Compile Failed"
string="${build.failed}"/>
</condition>
</fail>
</antelope:finally>
</antelope:try>
</target>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]