ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Anders...@nike.com>
Subject RE: os.name for windows return "Windows XP"?
Date Fri, 16 Jan 2004 01:55:01 GMT
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: barry@goodconsultants.com [mailto:barry@goodconsultants.com]
Sent: Thursday, January 15, 2004 5:24 PM
To: ant-user@jakarta.apache.org
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org




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


Mime
View raw message