Can I reuse a property? I want to set a property then change it later in the script.

 

I want to have one build file that can switch depending on a variable. Is this not what properties are for?

 

When I set the property it is always what ever I set it to last. Can anyone tell me how I would do this?

 

<property name="build.dir" value="bin\Debug" />

            <property name="debug" value="True" />

            <target name="Debug">

                        <nant buildfile="foo.build" inheritall="true" verbose="True" />

            </target>

           

<property name="build.dir" value="bin\Release" />

            <property name="debug" value="False" />

            <target name="Release">

                        <nant buildfile="foo.build" inheritall="true" verbose="True" />

            </target>

 

Dave Lloyd

Reply via email to