ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan McFadyen" <>
Subject RE: Failure Handler - Catching a BuildException
Date Fri, 01 Sep 2006 17:24:23 GMT

You could make:

<target name="" depends="scm.get,doc,compile,installers"/>

<target name="checklog" depends=""/>

and just run checklog instead of, and set to not fail
on error.... I think


-----Original Message-----
From: Peter Kahn []
Sent: Friday, September 01, 2006 1:08 PM
Subject: Failure Handler - Catching a BuildException

Can someone tell me how I a target processed if the build fails?

I have a target called "".  It depends on all the other targets
that make up my build.  I use a variety of tools for my build so I have a
script that scrapes the logs and produces a report.  I have wrapped this
script in a target called "checklog."   How can I get checklog to be built
even if a dependency of full.buld fails?

if a failure happens prior to checklog, then check log isn't run, not what I
<target name="" depends="scm.get

Option 2:
ant has this
    <target name="" depends="scm.get,doc,compile,installers"/>

a perl file does this, but lacks elegance and make me thing I'm going about
this the wrong way...
  system("ant checklog");

Thanks for the help...
Peter Kahn  | IM:, pkahnpie1@AIM, skype:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message