Hi
In build scripts,
often I want to carry on executing the script even though the last task has
failed (ie. use failonerror="false") but I would like to know that the
preceeding step has failed so I can do some different processing to
normal.
What do you think of
the idea of having a "property" attribute on all tasks, which contains the
name of the property that after task completion contains true if the task went
ok or false if the task failed.
eg.
<nunit2
verbose="${ab.verbose}" failonerror="false"
property="nunit.ran.ok">
<formatter type="Xml" extension=".Xml" outputdir="${ab.dir.results.temp.nunit}" usefile="true" />
<test assemblyname="${path::combine(ab.dir.src,'donkey.dll')}" />
</nunit2>
<formatter type="Xml" extension=".Xml" outputdir="${ab.dir.results.temp.nunit}" usefile="true" />
<test assemblyname="${path::combine(ab.dir.src,'donkey.dll')}" />
</nunit2>
So "nunit.ran.ok"
would contain true or false after this task was executed. Obviously if
failonerror="true" then property is ignored/makes no
difference.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System
- after being sent from Granta Design Ltd
______________________________________________________________________