From: Scott H. <sk...@eo...> - 2003-12-30 19:35:08
|
MessageJust 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=3D"prop" value=3D"1"/> <nant buildfile=3D"file2.build" target=3D"alterProp" = passbyref=3D"prop" inheritall=3D"true"/> <echo message=3D"Prop: ${prop}/> </> --file2.build-- <project> <target name=3D"alterProp"> <property name=3D"prop" value=3D"2"/> </> </> Running this you would get the output of "Prop: 2"? ----- Original Message -----=20 From: Randy Regnier=20 To: nan...@li...=20 Sent: Tuesday, December 30, 2003 11:14 AM Subject: [nant-dev] NAnt task "passbyref" extension Our development group has implemented a "passbyref" extension to the = NAnt task, which essentially allows the task to modify selected property = values, and have those modified property values available to the calling = client. This is comparable to passing parameters by reference in C# = code. A snippet from a build file looks like: <nant target=3D"debug" inheritall=3D"true" passbyref=3D"foo bar"/> <!-- Use modified foo and bar properties. --> If this capability is suitable for inclusion in the standard Nant = task, we can send in a patch for more detailed review. Randy |