Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 65054 invoked from network); 17 Jan 2002 20:39:28 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 17 Jan 2002 20:39:28 -0000 Received: (qmail 16575 invoked by uid 97); 17 Jan 2002 20:39:15 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 16532 invoked by uid 97); 17 Jan 2002 20:39:13 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 16516 invoked from network); 17 Jan 2002 20:39:12 -0000 From: "Kevin Jones" To: "'Ant Developers List'" Subject: RE: Environment problems Date: Thu, 17 Jan 2002 20:37:03 -0000 Message-ID: <00e301c19f96$baee1340$0200a8c0@develop.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3590.0000 Importance: Normal In-Reply-To: <011901c19e01$ebaf3a90$b81c570f@cv.hp.com> X-OriginalArrivalTime: 17 Jan 2002 20:37:07.0346 (UTC) FILETIME=[BAF2A720:01C19F96] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Found it :-)) > > if ( osname.indexOf("nt") >= 0 || > > osname.indexOf("2000") >= 0 || > > osname.indexOf("xp") >= 0) { There is another place where the osname is checked, in getProcEnvCommand() change this if ( osname.indexOf("nt") >= 0 || osname.indexOf("2000") >= 0) { to this if ( osname.indexOf("nt") >= 0 || osname.indexOf("2000") >= 0 || osname.indexOf("xp") >= 0) { I think they are the only two places in the code that the osname substring is checked, Kevin Jones Developmentor www.develop.com > -----Original Message----- > From: Steve Loughran [mailto:steve_l@iseran.com] > Sent: 15 January 2002 20:19 > To: Ant Developers List > Subject: Re: Environment problems > > > > ----- Original Message ----- > From: "Nico Seessle" > To: "Ant Developers List" > Sent: Tuesday, January 15, 2002 11:18 > Subject: Re: Environment problems > > > > ----- Original Message ----- > > From: "Kevin Jones" > > To: "Ant-Dev" > > Sent: Tuesday, January 15, 2002 3:22 PM > > Subject: Environment problems > > > > > > > I'm using Ant on JDK 1.4 (rc1) and .Net Server Enterprise beta 3 > > > (this is the replacement for W2kK Advanced Server) and I > can't use > > > the setting. I get the > following error > > > > > > "c:\winnt\system32\ntvdm.exe > > > Error while setting up the environment for the application." > > > > > > Ant with JDK1.4 and Windows 2000 works OK as does Ant on .Net > > > Enterprise Server with JDK 1.3.1 > > > > > > So it's some combination of Ant1.4/JDK1.4/.Net Enterprise server. > > > > > Do you have the Source for Ant? Can you modify > > org.apache.tools.ant.taskdefs.Execute.java and replace all > occurences > > of > > > > if ( osname.indexOf("nt") >= 0 || > osname.indexOf("2000") > > >= > 0 ) > > { > > > > with > > > > if ( osname.indexOf("nt") >= 0 || > > osname.indexOf("2000") >= 0 || > > osname.indexOf("xp") >= 0) { > > > > and tell us if that works better for you? > > > > I have xp pro; not .net server > ver= Microsoft Windows XP [Version 5.1.2600] > > but ant thinks this is a win2K box. > > Apache Ant version 1.5alpha compiled on January 11 2002 > Buildfile: build.xml > Detected Java version: 1.3 in: C:\java\jdk130\jre > Detected OS: Windows 2000 > > Kevin. > > 1. file the bug on bugzilla > 2. tell us what your env is > 3. give us the opening lines of a verbose build and the output of ver. > > -steve > > > -- > To unsubscribe, e-mail: > unsubscribe@jakarta.apache.org> > For > additional commands, > e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: