Troy

How would your nant project Inherit a subset of properties from parent project?
Are you proposing access modifiers for properties of the parent?
Right now you get all (inheritall="true") or nothing (inheritall="false") with the exception of user properties passed in here is the relevant text from ANT
Alternatively, you can set the inheritAll attribute to false and only "user" properties (i.e., those passed on the command-line) will be passed to the new project. In either case, the set of properties passed to the new project will override the properties that are set in the new project

Please explain the property inheritance that you are speaking of

-Martin
----- Original Message -----
Sent: Tuesday, June 15, 2004 10:24 PM
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.

Reply via email to