John,
NAnt properties can be readonly (if you specifically set the readonly attribute) or
read-write (the default). If they are read-write, then you can set the same property
as many times has you want, much like any programming variable.
The thing that catches a lot of people is that command line arguments specified as
-D:propname=value become properties within the build script. What's more, they are
readonly properties.
Therefore, if you have -D:foo=123 on the command line, then in the script you can
write ${foo} as many times as you want, but you cannot write <property name="foo"
value="somethingelse"/>.
In NAnt 0.85 you will get an explicit error message about trying to change a readonly
value. In previous versions, NAnt quietly ignored the attempt to change the readonly
property value.
Merrill
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users