Didn't we agree to not throw this error anymore - and just warn as was
the previous behaviour ? I guess the change hasn't gone in yet. If I get
some time tomorrow I'll do it.
Ian
Thibaut Barrère wrote:
Hi,
I've been struggling around a while after updating a 5 month old nant
to the latest version.
I've been confused about what I get when overriding a property from
the command-line (which we use a lot for instance with cruisecontrol) :
"Read-only property "xxx" cannot be overwritten."
Don't reply RTFM, I had read it but never had actually realised what
was happening here :) I've been expecting readonly flag to be the
solution (but its' not), and even ended up writing this :
<ifnot test="${property::exists('myprop')}">
<property name="myprop" value="false"/>
</ifnot>
as a work around (sure it works).
Finally I discovered that the good way to write this seems to be :
<property name="myprop" value="true" overwrite="false" />
So basically I'm making a proposal here : we should change the message :
"Read-only property "xxx" cannot be overwritten."
to something more helpful.
Maybe something like (dunno, it's a bit long maybe)
"Read-only property "xxx" cannot be overwritten. Command-line
properties are always read-only; add an overwrite="false" attribute to
your property definition if you want to be able to override it from
the command line"
What do you think? Did other users meet the same issue ?
cheers
Thibaut
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users