<?xml version="1.0"?>
<project name="Fail Message Test" default="fail">

	<property name="nant.onfailure" value="handle-failure" />
	
	<target name="fail">
		<available resource="missing.resource.txt" type="File" property="exists" />
		<ifnot propertytrue="exists">
			<fail message="===> This message should announce the forced failure." />
		</ifnot>
	</target>

	<target name="handle-failure">
		<echo mesage="Failure happened, and this is the message to appear at the end." />
		<echo mesage="This task should fail." />
		<delete dir="${build.dir}" failonerror="false" />
	</target>
	
</project>