ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dave young <dyo...@bsis.com.au>
Subject Re: Permissible values for attribute 'os'
Date Tue, 21 Aug 2001 00:51:17 GMT
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"
> 
> 




Mime
View raw message