Filip,

I'm testing for property::exists in the child build script;
If the property is defined in the master, that value is
inherited by the child.

It works, but I can't say if there is a better way to do it.

Best regards,
allan

Example (child):

<property  
   name = "ver.conf"  
   value = "0.0.0.0" 
   unless  = "${property::exists('ver.conf')}" 
/>




-----Oprindelig meddelelse-----
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Filip Kratochvil
Sendt: 28. oktober 2005 03:24
Til: nant-users@lists.sourceforge.net
Emne: [Nant-users] overwriting properties when calling anothe build script

I need to overwrite property when calling another nant build script but 
failing to do so. I have a master build file thet has a target with <nant> 
task in it. Within the nant task I'm declaring
<properties><property....
this property has the same name as property in my slave build file, however 
the property in the slave file doesn't get overwritten and keeps it default 
value. I tried including 'readonly=false' and the property in the slave file 
and 'overwrite=true' in the master file, but still no luck. Can anyone 
suggest how to do this?
Thanks in advance




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users




_______________________________________________________________________________________
www.kmd.dk   www.kundenet.kmd.dk   www.eboks.dk   www.civitas.dk   
www.netborger.dk www.organisator.dk

Hvis du har modtaget denne mail ved en fejl vil jeg gerne, at du informerer mig 
og sletter den.
KMD skaber it-services, der fremmer effektivitet hos det offentlige, 
erhvervslivet og borgerne.

If you received this e-mail by mistake, please notify me and delete it. Thank 
you.
Our mission is to enhance the efficiency of the public sector and improve its 
service of the general public. 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to