> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Stephen Lewis > Sent: donderdag 11 november 2004 23:09 > To: [EMAIL PROTECTED] > Subject: [Nant-users] Failing tasks derived from ExternalProgramBase > > Thanks to Gert for answering my previous question about the Onfailure > property. I can confirm that the following project and > subproject will > trigger the Onfailure task correctly: > > Main Project: > <project name="MainProject" default="DoSubProject"> > <property name="nant.onfailure" value="OnFailure"/> > <target name="DoSubProject"> > <nant buildfile="SubBuild.build"/> > </target> > <target name="OnFailure"> > <echo message="Project failed"/> > </target> > </project> > > Sub Project: > <project name="SubProject" default="build"> > <target name="build"> > <fail message="Always fails"/> > </target> > </project> > > I have some custom tasks that are based on ExternalProgramBase. When > they fail (i.e. the external program returns a non-zero error > code), the > OnFailure task in the main project does not get triggered. > Is this the > intended behavior?
No definitily not. Can you provide a repro for this ? Gert ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users