Which
version of Nant are you using Troy?
There was a bug in .084 where properties in the <nant> task where
evaluated in the context of the script being called rather than the calling
script. This is fixed in the
latest nightly builds and the syntax you have should work. HTH, Bill -----Original
Message----- Am I
using this the wrong way? <property
name="test-property-to-pass" value="foo" /> <nant
buildfile="foo.build" target="foo.target"
inheritall="false">
<properties>
<property name="test-property"
value="${test-property-to-pass}" />
</properties> </nant> The
above fails (Property 'test-property-to-pass' has not been set.) unless
inheritall is set to "true" in the nant task. This seems very
counter-intuitive to me, since I basically want to pass a subset of the
properties in the parent buildfile into the called buildfile. Currently,
if inheritall="false", I can only use hard-coded properties, which is
essentially useless for my purposes. Am I
way off base here? Regards, -- Troy
______________________________________________________________ CONFIDENTIALITY NOTICE This communication and the information it contains is intended for the person or organisation to whom it is addressed. Its contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you are not the intended recipient, please contact us immediately. The contents of any attachments in this e-mail may contain software viruses, which could damage your own computer system. While Marlborough Stirling has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage, which you sustain as a result of software viruses. You should carry out your own virus checking procedure before opening any attachment. Marlborough Stirling plc, Registered in England and Wales Registered No. 3008820, Allen Jones House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH Tel: 01242 547000 Fax: 01242 547100 http://www.marlborough-stirling.com |