ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject RE: Exec task and W2K
Date Tue, 19 Sep 2000 13:04:47 GMT
Alain,

Current CVS code (Execute.java) does just this (although it skips the
tolowercase on the search for "2000". You can either try a nightly build or
wait for release 1.2 (for which there is as yet no date).

Cheers
Conor


-----Original Message-----
From: Alain Origlia [mailto:aoriglia@calendra.com]
Sent: Tuesday, 19 September 2000 23:58
To: ant-user@jakarta.apache.org
Subject: Fw: Exec task and W2K


Oops! %o)

It should have read:

if (myos.toLowerCase().indexOf("nt") >= 0 ||
myos.toLowerCase().indexOf("2000") >= 0) {


 ----- Original Message -----
From: Alain Origlia
To: ant-user@jakarta.apache.org
Sent: Tuesday, September 19, 2000 2:38 PM
Subject: Exec task and W2K


Hi all,

the os.name returned by java on W2K is "Windows 2000". There's no more "nt"
token in this property. I think the Exec task should test if "nt" token is
present or if "2000" is present:

(...)

   if (myos.toLowerCase().indexOf("nt") >= 0 ||
myos.toLowerCase().indexOf("2000")) {

(...)

Alain Origlia

CALENDRA
135, rue du Dirigeable
ZI Les Paluds
13783 AUBAGNE Cedex
Tel: 04 42 18 69 90

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/IT/MU d- s-: a C+++$ UL P++ L+ E(-) W++ N@ o? K- w(++) !O
!M !V PS+ PE++ Y PGP- t 5? X+ R tv- b+ DI++ !D G e+++ h---- r+++ y+++
------END GEEK CODE BLOCK------


Mime
View raw message