I don't know if your common include is the problem or not, but you could condition the setting of the properties in the common include file using the @unless attribute with the property::exists functionto only define them in the child build files if they aren't already defined.
<property name="fs.build" value="blah" unless="${property::exists('fs.build')}" />
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Steve Valaitis
Sent: Wed 10/25/2006 12:08 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] <nant> task not passing properties.
I have a buildfile(default) with the following in a target:
<nant target="${build.target}">
<buildfiles>
<include name="fs.build"/>
<include name="pa.build"/>
</buildfiles>
</nant>
According to the docs for <nant>, all of the current property values
should be automatically passed to the build files. I assumed it would be
similar to -D:prop=value, but the build files process without any change
to their properties.
I then tried adding the following to my nant task, thinking that this
would make things work, but I still get the same result:
<properties>
<property name="fresh.build" value="${fresh.build}" overwrite="true"
readonly="true"/>
<property name="need.checkout" value="${need.checkout}"
overwrite="true" readonly="true"/>
</properties>
The only way I have gotten things to work is by calling an exec task for
each of the build files, and manually constructing the arguments to pass
over. This seems somewhat brittle, and hackish. Is this behavior to be
expected? Am I doing something wrong?
All of the build files include a common.build buildfile that has some
properties declared at the global level. Would this be causing the
problem, and if so, can I get around it?
Thanks,
Steve
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users