Hmmm... But this is not exactly the same... What happens when the included
file does not exit?

Think of the following typical scenario:

    * multiple developers with slightly different build environments
(different location for some libraries, for instance);
    * the build script contains properties pointing to the *default*
locations; the build script is versioned and shared by all developers;
    * each developer can provide a build.properties file to adjust the build
script to its environment idiosyncrasies; the build.properties is not
versioned nor shared;

How would one accomplish something on these lines with nant?

Best regards,
Rodrigo

----- Original Message ----- 
From: "Gert Driesen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Marion Nalepa" <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 3:54 PM
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/nant-users

Reply via email to