ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject FW: Question about failonerror
Date Tue, 03 Feb 2004 23:20:48 GMT
Oops, was meant for the list. --DD

-----Original Message-----
From: Dominique Devienne 
 
> From: Paul, R. Chip [mailto:ROY.C.PAUL.III@saic.com]
> > The only time I ever use failonerror="false" is to allow generating the
> testing report with <junitreport>, so > > that the developer can look at
> the
> failures in the report, and I then actually fail the build.
> 
> How do you delay the failure and have it fail the build later?

Like this. --DD

<target name="test" depends="..., -test, testreport">
  <fail message="Some tests failed!!!" if="test.failed" />
</target>

<target name="-test" depends="init">
  <junit haltonfailure="false" failureproperty="test.failed" ... />
</target>

<target name="testreport">
  <junitreport ... />
</target>

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


Mime
View raw message