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 17:16:48 GMT
Thank you Matt. That was what I was looking for.


>From: Matt Benson <gudnabrsam@yahoo.com>
>Reply-To: "Ant Users List" <user@ant.apache.org>
>To: Ant Users List <user@ant.apache.org>
>Subject: RE: select properties file
>Date: Tue, 16 Dec 2003 08:55:10 -0800 (PST)
>
><project ..... default="sometarget">
>
>   <target name="sometarget" depends="checkos">
>      <property file="${basename}.properties" />
>   </target>
>
>   <target name="checkos">
>     <condition property="basename" value="1">
>       <os family="unix" />
>     </condition>
>
>     <condition property="basename" value="2">
>       <os family="windows" />
>     </condition>
>   </target>
>
></project>
>
>
>--- Siri Nivasam <sirinivasam@hotmail.com> wrote:
> > Is there any way I can do this, without naming my
> > properties files as
> > unix.properities and windows.properties? I want to
> > use a specific name for
> > the properties file.
> >
> >
> > >From: "Mark Lybarger"
> > <Mark.Lybarger@CBC-Companies.com>
> > >Reply-To: "Ant Users List" <user@ant.apache.org>
> > >To: "Ant Users List" <user@ant.apache.org>
> > >Subject: RE: select properties file
> > >Date: Tue, 16 Dec 2003 10:45:47 -0500
> > >
> > >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
> > >
> >
> >
>_________________________________________________________________
> > Don’t worry if your Inbox will max out while you are
> > enjoying the holidays.
> > Get MSN Extra Storage!
> > http://join.msn.com/?PAGE=features/es
> >
> >
> >
>---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> >
>
>
>__________________________________
>Do you Yahoo!?
>New Yahoo! Photos - easier uploading and sharing.
>http://photos.yahoo.com/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>

_________________________________________________________________
Winterize your home with tips from MSN House & Home. 
http://special.msn.com/home/warmhome.armx


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


Mime
View raw message