i believe at this point there's no property file functionality. as i think about your problem, i imagine you could accomplish your purpose w/ <include> as follows:
because <include> is global (not in a task), get it to <include> ALL the diverse client property defs. but don't put the defs. at the project level of the included file(s) -- put them each in a target called after the client. in other words, you'd like to do this but you can't: <project> <foreach client> <call dosomethingWithClient> <dosomethingWithClient> <include properties for my client> <do do something> so instead do this: <project> <include all propertyDefs> (either in 1 file or in several...) <foreach client> <call dosomethingWithClient> <dosomethingWithClient> <call propertyDefFor${Client} force="true just in case" > <do do something> where propertyDefs looks like this: <project> <target name="propertyDefForBob" > <property name="root" value="c:\bob" /> <target name="propertyDefForPete" > <property name="root" value="d:\lala\pete" /> sorry to be going on... basically, it's not structurally very different. it doesn't involve more coding. it's just making it go w/ what we've got. hth > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Darren Syzling > Sent: Thursday, October 23, 2003 11:14 > To: [EMAIL PROTECTED] > Subject: RE: [Nant-users] support for property files ? > > > Sorry to pick up on this thread rather late but, am I correct > in thinking that the include task can't be used within a target? > > I have a situation where I would like to package an > application for multiple clients. Certain targets use > properties to configure various parts of the client > installation. I'd also like to batch build each customer in > turn, which relies on being able to set the properties within > a target and repeat for each client. > > Unless I'm wrong in this scenario the <include> task wouldn't > work, although <property file=".." /> may be useful? > > > > Darren Syzling > mailto:[EMAIL PROTECTED] > http://www.optial.com > ------------------------------------------------ > This message may contain information which is confidential or > privileged. If you are not the intended recipient, please > advise the sender immediately by reply e-mail and delete this > message and any attachments without retaining a copy. > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Gert Driesen > Sent: 14 October 2003 18:54 > To: [EMAIL PROTECTED]; Marion Nalepa > Subject: Re: [Nant-users] support for property files ? > > > ----- Original Message ----- > From: "Marion Nalepa" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 14, 2003 8:39 PM > Subject: [Nant-users] support for property files ? > > > > I'm wondering if there is an equivalent ability in NAnt to Ant's > > property file feature: > > > > Specifically, in Ant you can load properties from an external file > > such as: > > > > <property file="build.properties" /> > > > > where this file contains name/value pairs like: > > > > prop1=value1 > > prop2=value2 > > ... > > > > This is immensely useful to allow for a universal build file to be > > constructed, with each developer only having to edit an external > > properties file to tailor the build to his/her individual system. > > in NAnt we just an include task which loads a "build file" > containing only property declarations ... > > eg. <include buildfile="build.properties" /> > > and build.properties would then look like this : > > <project name="build-properties"> > <property name="prop1" value="value1" /> > <property name="prop2" value="value2" /> > </project> > > Hope this helps, > > Gert > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. See > the people who have HELPED US provide better services: Click > here: http://sourceforge.net/supporters.php > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/n> ant-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: The SF.net Donation > Program. Do you like what SourceForge.net is doing for the > Open Source Community? Make a contribution, and help us add > new features and functionality. Click here: > http://sourceforge.net/donate/ > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/n> ant-users > ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users