You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Tony Brusseau <br...@cyc.com> on 2004/02/03 19:58:22 UTC

Question about failonerror

I'm currently getting up to speed in ant and am
in the middle of writing my first complex ant build
file. I've encountered one stumbling block that maybe 
someone can help with.

I just wrote a target that calls junit and 
has different behaviors depending on whether of
not junit succeeded. To do this I used the
following attributes:
	haltonfailure="off" 
        failureproperty="test-failed"

I'd like to have the same behevior for
compling, cleaning, "cvsing", installing, etc.
However I only find the failonerror attribute
on these tasks. This will allow me not to fail when
they break, but how exactly do I know when I've
failed vs succeeded at the task and how can
I get ant to do different things based on this 
information? Does failonerror set a property when 
the tasks fails? I could not find any documentation 
on this.

Thanks for any help,

Tony Brusseau
Cycorp, Inc.




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org