ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <>
Subject Re: for windows return "Windows XP"?
Date Fri, 16 Jan 2004 02:31:05 GMT
On Fri, 16 Jan 2004 12:24 pm, wrote:
> Hi,
> There must be someone who is dealing with the same issue. I am trying to
> take multiplatform builds with different ${}.properties file. Linux
> is not a problem, What about Windows? It becomes Windows
> files.
> Can someone enlight me the better way to do this with one word .properties
> name?

I've used this approach in the past

  <target name="set-conditions">
    <condition property="linux">
      <os name="linux"/>

    <condition property="solaris">
      <os name="SunOS"/>

    <condition property="windows">
      <os family="windows"/>

You could probably use a single property name and different value attributes 
and load the properties that way. Depends if you want to use if attributes 
later on.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message