ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@antbuild.com>
Subject Re: Detecting the operative system
Date Thu, 14 Aug 2003 14:18:58 GMT
Have a look at the condition task in the manual, and the paragraph about os.
Also make a build script with the task echoproperties in it, and see what it
outputs.
Cheers,
Antoine
----- Original Message -----
From: "David" <achepati67@yahoo.es>
To: "Ant Apache User List" <user@ant.apache.org>
Sent: Thursday, August 14, 2003 4:00 PM
Subject: Detecting the operative system


> Hello users,
>
> I would like to know how to detect the operative system. When I run ant
> on -verbose mode it prints information in string format, with the variable
> os.name, on my case it has the value: "Windows 2000".
>
> For my case it is enought to detect the mayor operative systems, that is:
> windows, unix, macintoch, but no the specific version under a given
> operative system. Is there any other property that gives such information,
> if not which are the possible values of os.name? (for checking with a
> particular value)
>
> Thanks in advance,
>
> David
>
> ---------------------------------------------------------------------
> 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