[NAnt-users] non-readonly properties

2012-02-22 Thread Chris Fouts
I have the following properties defined in mynant.build file
!-- Use these Bools for enable either Project1 and/or Project2 
builds --
property name=enable_project1_build value=true 
readonly=false /
property name=enable_project2_build value=true 
readonly=false /

But when I run script where I override the defined properties, e.g.,
C:\ nant mynant.build -D:enable_project1_build=false

I get...
Read-only property enable_project1_build cannot be overwritten.

I do echo the values for testing, I get the correct value, so should I just 
ignore the noise?

-chris



***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please 
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] non-readonly properties

2012-02-22 Thread Bob Archer
Properties set on the command line are always read-only.

If you want to not reset a property value if it was set from the command line 
you can use overwrite=false.

Also, when you pass false from the command line you don't need to quote it.

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Wednesday, February 22, 2012 1:04 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] non-readonly properties

I have the following properties defined in mynant.build file
!-- Use these Bools for enable either Project1 and/or Project2 
builds --
property name=enable_project1_build value=true 
readonly=false /
property name=enable_project2_build value=true 
readonly=false /

But when I run script where I override the defined properties, e.g.,
C:\ nant mynant.build -D:enable_project1_build=false

I get...
Read-only property enable_project1_build cannot be overwritten.

I do echo the values for testing, I get the correct value, so should I just 
ignore the noise?

-chris



***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] non-readonly properties

2012-02-22 Thread Chris Fouts
Thanks, I was actually setting the arguments in CCNET, via buildArgs

From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Wednesday, February 22, 2012 1:25 PM
To: Chris Fouts; nant-users@lists.sourceforge.net
Subject: RE: non-readonly properties

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

If you want to not reset a property value if it was set from the command line 
you can use overwrite=false.

Also, when you pass false from the command line you don't need to quote it.

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Wednesday, February 22, 2012 1:04 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] non-readonly properties

I have the following properties defined in mynant.build file
!-- Use these Bools for enable either Project1 and/or Project2 
builds --
property name=enable_project1_build value=true 
readonly=false /
property name=enable_project2_build value=true 
readonly=false /

But when I run script where I override the defined properties, e.g.,
C:\ nant mynant.build -D:enable_project1_build=false

I get...
Read-only property enable_project1_build cannot be overwritten.

I do echo the values for testing, I get the correct value, so should I just 
ignore the noise?

-chris



***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users