ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Vogel <pvo...@arsin.com>
Subject RE: Including property files
Date Sun, 10 Jun 2001 08:05:32 GMT
The property file is NOT xml, it's in java "properties" format:

name=value

-Peter

> -----Original Message-----
> From: Jon Eaves [mailto:jon@eaves.org]
> Sent: Monday, June 04, 2001 10:56 PM
> To: ant-user@jakarta.apache.org
> Subject: Including property files
> 
> 
> Hi all,
> 
> Did a quick search of the archives, but didn't come up with what
> I wanted.  
> 
> I've got a project build file (build.xml) that includes a
> platform specific file (windows_env.xml or unix_env.xml) 
> depending on the platform.
> 
> Within the *_env.xml files is a
> 
> <property file="user_env.xml" />
> 
> So users can just modify one file and the rest can stay
> in CVS unchanged.  The local file has things like the
> source and deployment roots, etc, etc.
> 
> The user_env.xml file doesn't seem to be included/parsed as
> ant -v doesn't show anything particularly interesting, and
> the <echo message="${user.foo}" /> displays ${user.foo} and
> gives a nice error message in ant -v.
> 
> Help !
> 
> Cheers,
>     -- jon
> 
> --
> Jon Eaves <jon@eaves.org>
> http://www.eaves.org/jon/
> 

Mime
View raw message