You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Kai Bartels <ka...@picturesafe.de> on 2001/08/20 09:47:27 UTC

Re: Permissible values for attribute 'os'

On Sun, Aug 19, 2001 at 07:11:34PM -0700, Erik Hatcher wrote:
> 
> On Windows 2k its returning "Windows 2000".
> 
> ----- Original Message -----
> > What are the permissible values for the attribute 'os' in the built-in
> task
> > 'Exec'

I know of "SunOS", "Linux" and "Windows NT"

-- 
"Lawful, adj. Compatible with the will of a judge having jurisdiction."
                                                             <Ambrose Bierce>
KBartels@picturesafe.de                  +                 www.picturesafe.de
picturesafe GmbH, Lueerstr. 3, D-30175 Hannover          fon:+49 511 85620 56
++ PGP Key fingerprint =  D2 B9 58 DC 36 52 DB 6C  18 CC 43 9F 68 E0 21 97 ++

Re: Permissible values for attribute 'os'

Posted by "Robert J. Clark" <cl...@sitraka.com>.
On Tue, 21 Aug 2001 08:51:17 +0800 dave
(dave young <dy...@bsis.com.au>) wrote:

> it'd be nice to find a comprehensive list of os id strings somewhere :-)

http://www.tolstoy.com/samizdat/sysprops.html

Might be of interest ....

 - Rob

Re: Permissible values for attribute 'os'

Posted by dave young <dy...@bsis.com.au>.
In my ant files, i have the following property definitions;

   <property name="windoze" value="Windows NT,Windows 2000,Windows 98"/>
   <property name="unix" value="Linux, SunOS, UNIX"/>

and implement running perl scripts within targets as follows (where 
p45.pp is your perl program/script of choice);

   <exec dir="${script.dir}" os="${unix}" executable="perl">
     <arg value="p45.pp"/>
     <arg value="${verbose}"/>
   </exec>
   <exec dir="${script.dir}" os="${windoze}" executable="perl.exe">
     <arg value="p45.pp"/>
     <arg value="${verbose}"/>
   </exec>

it'd be nice to find a comprehensive list of os id strings somewhere :-)

regards,

dave young.

Kai Bartels wrote:
> On Sun, Aug 19, 2001 at 07:11:34PM -0700, Erik Hatcher wrote:
> 
>>On Windows 2k its returning "Windows 2000".
>>
>>----- Original Message -----
>>
>>>What are the permissible values for the attribute 'os' in the built-in
>>>
>>task
>>
>>>'Exec'
>>>
> 
> I know of "SunOS", "Linux" and "Windows NT"
> 
>