<?xml version="1.0" ?>
<project name="test" default="init" xmlnds="http://tempuri.org/nant-vs.xsd">
<!--

	The only way of executing the init and test tasks, is to set the property is the root of the buildfile !

	So uncomment the next line to run the build without errors.
-->
<!--	<property name="build.notest" value="false" /> -->


<!-- 

	I only want to run this target if the build.notest property has not been set or if it has been set but contains a value other than boolean true.

	That's what the unless attribute should help you realise, not ?

	Apparently the unless attribute is also evaluated before the dependent target are execute, this is another BUG.

	The dependent targets should be executed before the unless or if are evaluated.  

	This is how Ant does it, and this is how it should be done !
-->

<!--
	I should've been able to use the

	unless="build.notest"

	here, but that fails (see my mail)
-->
	<target name="test" unless="${build.notest}" depends="init">
		<echo message="OK"/>
	</target>

	<target name="init" description="Initializes the build configuration">
		<property name="build.notest" value="true" />
		<echo message="Value of build.notest = ${build.notest}" />
		<call target="test" force="false" failonerror="true" verbose="true" />
	</target>
</project>
