that's a different topic, right? in my example, because the properties were defined in the root of the project, there's nothing to call. <include> "runs" the file, so the properties are now available in this build file. try it w/ my example. it works, right?
however, if you want, you can do this: c:\_myprops.build -----8<------------- <project > <target name="setProps" > <property name="include.this" value="included value of a prop" /> </target> </project> -----8<------------- <include buildfile="c:\_myprops.build" /> <target name="test-propfile" > <ifnot propertyexists="include.this" > <echo message="properties not set yet" /> </ifnot> <call target="setProps" /> <echo message="included prop set: ${include.this}" /> </target> basically, i've never seen problems calling targets in included files (you do have to use <call force="true"> if you want to call them more than once). i have a complex build system whereby, first, a whole bunch of <include> are processed in order to load memory w/ manymany targets. thereafter, it's business as usual, using <call> or <target depends= > to access the included targets based on diverse conditions. /jean > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Kevin Dickover > Sent: Friday, December 12, 2003 10:55 > To: 'Nant (E-mail)' > Subject: RE: [Nant-users] Including external properties files > > > I have used to external files as well. However I find that > targets defined in an include file can be called but they > never actually do anything. Is this behavior a bug or by > design? If it is by design that should be documented... > > > Kevin Dickover > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Jean Rajotte > Sent: Friday, December 12, 2003 10:47 AM > To: 'Daniel Bron'; 'Nant (E-mail)' > Subject: RE: [Nant-users] Including external properties files > > > it's not a property file per se, but a project file that > defines properties, like so: > > c:\_myprops.build > ------8<------ > <project name="locally-defined porperties" > > <property name="include.this" value="included value of a > prop" /> </project> > ------8<------ > > then you just include this file like so (note the <include> > task can't be inside a target ): > > <include buildfile="c:\_myprops.build" /> > > <target name="test-propfile" > > <echo message="included prop: ${include.this}" /> > </target> > > HTH > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Daniel Bron > > Sent: Friday, December 12, 2003 10:37 > > To: Nant (E-mail) > > Subject: [Nant-users] Including external properties files > > > > > > Hello, > > > > I'm new to Nant. Is there any way to include external > > properties files from a build file? That is, I would like to > > seperate (global) properties and actions, so different users > > can have different configurations. > > > > -D. Bron > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SF.net Giveback Program. > > Does SourceForge.net help you be more productive? Does it > > help you create better code? SHARE THE LOVE, and help us > > help YOU! 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: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users