Bugs item #1205930, was opened at 2005-05-20 23:22
Message generated for change (Comment added) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1205930&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: 0.85
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Douglas Shieh (dshieh)
>Assigned to: Gert Driesen (drieseng)
Summary: Overridden property incorrectly recognized as read-only

Initial Comment:
When I override a property from the nant command with 
the -D:property=value option, nant incorrectly warns that 
the property is read-only and cannot be overriden. 
However, the property does not have its readonly 
attribute set to true and does indeed get overridden. The 
following displayed warning message is incorrect.

 [property] Read-only property "some.property" cannot 
be overwritten.

----------------------------------------------------------------------

>Comment By: Gert Driesen (drieseng)
Date: 2005-05-21 16:36

Message:
Logged In: YES 
user_id=707851

What the warning output by NAnt actually means is that your 
build file is actually trying to override the property that you 
specified on the command-line. Not the other way around.

Properties set on the command-line are always marked read-
only.

To avoid this warning, you can set the "overwrite" property 
to "false" on the <property> task in your build file.

See 
http://nant.sourceforge.net/release/latest/help/tasks/property.
html for an example.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1205930&group_id=31650


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to