Commonly programs are configured such that the command line arguments override anything specified in a config file. NAnt works the other way; command line args are registered first, then the config file properties. People don't realize this previous to .85 because NAnt just logged an error instead of halting the build. It appeared the command line args overrode the config file, but what really happens is that the config file tries to override the command line and fails.
Furthermore, the workaround is also confusing. People want to be able to override properties from the command line, and the solution is to add ' overwrite="false"' to the property tag? From a usability standpoint this is just bizzare. Only by realizing the config file overrides the command line you understand the why on setting it to false, but it still trips me up every time.
I think this behavior/design needs to re-examined. I'd like to hear the devs and other users comment.
Thanks!
--------------------
Actually, this is not a bug. It"s working as designed. Here"s the URL to the property
help page:
http://nant.sourceforge.net/nightly/help/tasks/property.html
What you need to do is set overwrite="false" and it should work.
Felice
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 4:23 PM To: [EMAIL PROTECTED] Subject: [Nant-users] can"t overwrite property
Hi there,
why can"t properties be overwritten?
my code: <property name="path" value="" /> or <property name="path" value=""
overwrite="true" readonly="false"/>
run: nant -D:path=c:\temp
Nant says: readonly property path can"t be overwritten.
is it a bug in 0.85.1724 (09-20 build)?
thx
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users