----- 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