I would like to make the dependency of a certain Target configurable. I have tried using a Property in the depends attribute of the Target task, but Nant tells me the property is not defined, even if the property is defined first. Is there a way to do this? Thanks, Alex.
For example, the following build file will run with the error shown below (using version .84):
<?xml version="1.0" encoding="utf-8" ?>
<project name="Nant Test Multi-Build-File" default="atarget" basedir=".">
<property name="anothertargetname" value ="anothertarget" dynamic = "false" />
<target name="atarget" depends ="${anothertargetname}">
</target>
<target name="anothertarget">
</target>
</project>
Nant Results:
BUILD FAILED
Property 'anothertargetname' has not been set.