Just to be clear, your are doing this because you
want the build script you are called to modify the properties (specified by
passbyref) and have the calling build script use those
changes?
What is the practical application for
this?
Is this example correct?
--file1.build--
<project>
<property name="prop"
value="1"/>
<nant buildfile="file2.build"
target="alterProp" passbyref="prop" inheritall="true"/>
<echo message="Prop:
${prop}/>
</>
--file2.build--
<project>
<target
name="alterProp">
<property
name="prop" value="2"/>
</>
</>
Running this you would get the output of "Prop: 2"?
|
Title: Message
- [nant-dev] NAnt task "passbyref" extension Randy Regnier
- RE: [nant-dev] NAnt task "passbyref" extens... Scott Hernandez
- RE: [nant-dev] NAnt task "passbyref" ex... Randy Regnier
- Re: [nant-dev] NAnt task "passbyref"... Martin Aliger
- Re[2]: [nant-dev] NAnt task "passbyr... Ivan Tarasov