ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Kahn" <>
Subject Failure Handler - Catching a BuildException
Date Fri, 01 Sep 2006 17:08:20 GMT
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:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message