Jamie Briant wrote:

Does this not seem outstandingly dangerous to anyone?



<property name="build.config" value="Bananafanafofana" unless="${property::exists('build.config')}" />



Its just asking for errors where only one of the “build.config”’s is changed. Is there a good reason that the following is deprecated?



<property name="build.config" value="Bananafanafofana" overwrite="false" />


James,

I'm not sure why the first would be dangerous but the second not... they are functionally identical!

That's actually why the 'overwrite' attribute has been deprecated... it is a widely misunderstood property, and the unless test is considered much more explicit in its intent. That is, set this property unless it's already set. A default value, if you will.


Regards,

-- Troy


------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to