I have developed a Try Task which calls another target on a "Build
Exception", I have been using it now to two weeks and it seems to work quite
well.
<?xml version="1.0"?>
<project name="TryExample" default="main" basedir=".">
<!-- Used to load the task -->
<taskdef name="try" classname="ant.Try"/>
<!-- Main build method -->
<target name="main">
<!-- Try is a wrapper for other tasks. If an error occurs the target
errorhandler is called
-->
<try handler="errorhandler">
<javac srcdir="." destdir="."/>
</try>
</target>
<target name="errorhandler">
<echo "error occured"/>
<target/>
</project>
I was wondering whether it would be useful in the ANT project.
Yours sincerely,
Christopher Peerman.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>