ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Massa, Ray" <RMa...@ea.com>
Subject RE: <exec> Task?
Date Sat, 29 Sep 2001 01:41:40 GMT
Thanks Erik and Diane.

What I was looking for is the resulting string of ${os.name} for Win NT and
Win ME.

example:

	<target name="getlatest">
		<exec executable="COMMAND.COM" os="Windows 98">
			<arg line="/e:4096"/>
			<arg line="/l:1024"/>
			<arg line="/u:255"/>
			<arg line="/c"/>
			<arg line="${ssafe.file}"/>
		</exec>	
		<exec executable="CMD.EXE" os="Windows 2000">
			<arg line="/e:4096"/>
			<arg line="/l:1024"/>
			<arg line="/u:255"/>
			<arg line="/c"/>
			<arg line="${ssafe.file}"/>
		</exec>		
	</target>

-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
Sent: Friday, September 28, 2001 12:31 PM
To: ant-user@jakarta.apache.org
Subject: Re: <exec> Task?


Use this to determine the values:

    <echo message="os.name = ${os.name}"/>

If you are using Ant 1.4, have a look at the <condition> task regarding its
O/S "family" capability to group Windows, Mac, Unix, and DOS operating
systems rather than having to specify them explicitly by the os.name value.

    Erik


----- Original Message -----
From: "Massa, Ray" <RMassa@ea.com>
To: <ant-user@jakarta.apache.org>
Sent: Friday, September 28, 2001 12:18 PM
Subject: <exec> Task?


> What 'os' value would you use for:
>
> Windows NT?
> Windows ME?
>
> thanks
>

Mime
View raw message