Hi,
I need to find out the name of the target that is being used as the default when my script runs. Because I want initialisation in one place, I dont want to have to set up some paths in two different targets. For example I have two complicated build scripts that need the chosen target (Debug|Release) as part of the path. However due to the complexity, I would rather have them in one place instead of:
<target name="Release">
<property ....>
<property ....>
</target>
<target name="Debug">
<property ....>
<property ....>
</target>
Ideally I would like to do something like:
<property name="xxx" value="bin/${nant.main.target}"/>
Or something like that, so I can initialise the paths in one location. I guess there are ways of formulating my targets, so Setup target is called but it would be better in this case if I could initialise the important paths outside of a target, right at the top of my script...
Thanks,
Nick.
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs