Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 7258 invoked from network); 19 Sep 2000 12:41:26 -0000 Received: from unknown (HELO mail.calendra.com) (195.115.144.129) by locus.apache.org with SMTP; 19 Sep 2000 12:41:26 -0000 Received: from louisoncresson ([195.115.144.131]) by mail.calendra.com (Netscape Messaging Server 3.62) with SMTP id 380 for ; Tue, 19 Sep 2000 14:40:31 +0200 Message-ID: <00d501c02236$8b9637f0$3001a8c0@louisoncresson> From: "Alain Origlia" To: Subject: Exec task and W2K Date: Tue, 19 Sep 2000 14:38:43 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00D2_01C02247.4F114C50" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_00D2_01C02247.4F114C50 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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") >=3D 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=20 !M !V PS+ PE++ Y PGP- t 5? X+ R tv- b+ DI++ !D G e+++ h---- r+++ y+++ ------END GEEK CODE BLOCK------ ------=_NextPart_000_00D2_01C02247.4F114C50 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
 
the os.name returned by java on = W2K is=20 "Windows 2000". There's no more "nt" token in this property. I think the = Exec=20 task should test if "nt" token is present or if "2000" is = present:
 
(...)
 
   if=20 (myos.toLowerCase().indexOf("nt") >=3D 0 || = myos.toLowerCase().indexOf("2000"))=20 {
 
(...)
 
Alain Origlia
 
CALENDRA
135, rue du = Dirigeable
ZI=20 Les Paluds
13783 AUBAGNE Cedex
Tel: 04 42 18 69 90
 
-----BEGIN GEEK CODE = BLOCK-----
Version:=20 3.12
GCS/IT/MU d- s-: a C+++$ UL P++ L+ E(-) W++ N@ o? K- w(++) !O =
!M !V=20 PS+ PE++ Y PGP- t 5? X+ R tv- b+ DI++ !D G e+++ h---- r+++ = y+++
------END=20 GEEK CODE BLOCK------
------=_NextPart_000_00D2_01C02247.4F114C50--