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-----
From: Troy Laurin [mailto:[EMAIL PROTECTED]
Sent: 16 June 2004 03:24
To: [EMAIL PROTECTED]
Subject: [Nant-users] Scoping issues with <nant> task, passing properties with inheritall="false"

 

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

 

 


Disclaimer Message:

This message contains confidential information and is intended only for the individual(s) named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please immediately delete it and all copies of it from your system, destroy any hard copies of it, and notify the sender. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. To the maximum extent permitted by law, Immersive Technologies Pty. Ltd. does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission.

 



______________________________________________________________

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

Reply via email to