ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siri Nivasam" <siriniva...@hotmail.com>
Subject RE: select properties file
Date Tue, 16 Dec 2003 15:40:22 GMT
Jan,

Thank you for the reply. But what if I want to use like this.

if (os.name=unix) then
use property file my.properties
else if (os.name=windows) then
use property file your.properties

How can I do this in ant?

Thanks
Siri



>From: Jan.Materne@rzf.fin-nrw.de
>Reply-To: "Ant Users List" <user@ant.apache.org>
>To: user@ant.apache.org
>Subject: RE: select properties file
>Date: Tue, 16 Dec 2003 08:36:14 +0100
>
>Very simple:
>
><property file="${os.name}.properties"/>
><property file="default.properties"/>
>
>
>You shouldn´t forget the default file. Maybe the os.name is different from
>your notation...
>
>
>Jan
>
> > -----Original Message-----
> > From: Siri Nivasam [mailto:sirinivasam@hotmail.com]
> > Sent: Monday, December 15, 2003 5:59 PM
> > To: user@ant.apache.org
> > Subject: select properties file
> >
> >
> > I have two different properties files which I use when I
> > build on windows
> > and unix machines.
> >
> > How do I tell ant to use the appropriate file depending on
> > the os.name?
> >
> > Any help is appreciated.
> >
> > Thanks
> > Siri.
> >
> > _________________________________________________________________
> > Our best dial-up offer is back.  Get MSN Dial-up Internet
> > Service for 6
> > months @ $9.95/month now! http://join.msn.com/?page=dept/dialup
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >

_________________________________________________________________
Take advantage of our best MSN Dial-up offer of the year — six months 
@$9.95/month. Sign up now! http://join.msn.com/?page=dept/dialup


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message