ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Lybarger" <Mark.Lybar...@CBC-Companies.com>
Subject RE: select properties file
Date Tue, 16 Dec 2003 15:45:47 GMT
just as Jan mentioned.  to easily do this, you'll need to move your my.properties and your.properties
to unix.properties and windows.properties or whatever values you expect for os.name.


> -----Original Message-----
> From: Siri Nivasam [mailto:sirinivasam@hotmail.com]
> Sent: Tuesday, December 16, 2003 10:40 AM
> To: user@ant.apache.org
> Subject: RE: select properties file
> 
> 
> 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
> 
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003
>  
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003
 


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


Mime
View raw message