You could create the following:

windows.properties
linux.properties

Then pass the parameter in on the command line...

ant -Denv=linux ...

Perhaps it could default to windows...

<target name="setEnv" unless="env">
        <property name="env" value="windows"/>
</target>

Then on linux you could create an alias in the shell...

alias ant="ant -Denv=linux"

I hope this helps,

-Rob Anderson

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 5:24 PM
To: [EMAIL PROTECTED]
Subject: os.name for windows return "Windows XP"?


Hi,

There must be someone who is dealing with the same issue. I am trying to take 
multiplatform builds with different ${os.name}.properties file. Linux is not a 
problem, Linux.properties. What about Windows? It becomes Windows 
XP.properties files. 

Can someone enlight me the better way to do this with one word .properties 
name?

Thanks

Barry




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to