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 68207 invoked from network); 16 Jan 2001 22:17:27 -0000 Received: from cortex-gw.magna.com.au (HELO smtp.cortexebusiness.com.au) (203.174.140.214) by h31.sny.collab.net with SMTP; 16 Jan 2001 22:17:27 -0000 Received: (from daemon@localhost) by smtp.cortexebusiness.com.au (8.10.0/8.10.0) id f0GMHVR15470 for ; Wed, 17 Jan 2001 09:17:31 +1100 (EST) Received: from UNKNOWN(192.168.1.8), claiming to be "monkey.prod.thespot.com.au" via SMTP by ripley, id smtpdAAAffa4eE; Wed Jan 17 09:17:02 2001 Received: (from daemon@localhost) by monkey.prod.thespot.com.au (8.10.0/8.10.0) id f0GMH1i17302 for ; Wed, 17 Jan 2001 09:17:02 +1100 (EST) Received: from UNKNOWN(192.168.1.9), claiming to be "chunky.devl.ebinteractive.com.au" via SMTP by monkey, id smtpdAAA0za4XH; Wed Jan 17 09:16:51 2001 Received: from snotty (snotty.devl.ebinteractive.com.au [192.168.1.32]) by chunky.devl.ebinteractive.com.au (8.10.0/8.10.0) with SMTP id f0GMGoB20027 for ; Wed, 17 Jan 2001 09:16:51 +1100 (EST) Reply-To: From: "Conor MacNeill" To: Subject: RE: Dir attribute of the execute task. Date: Wed, 17 Jan 2001 09:17:41 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <20010116193049.69822.qmail@web10405.mail.yahoo.com> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Andy, The dir attribute sets the current directory that will be in force when the external command is executed. It does not provide the location of the external command. For example, create a batch file in your path, something like echo Hello dir Now execute this in different directories and you will see the difference. Nevertheless, I think this may be a bug in Runtime.exec(...). I'm going to do some tests and see. Conor -- Conor MacNeill conor@cortexebusiness.com.au Cortex eBusiness http://www.cortexebusiness.com.au > -----Original Message----- > From: Andrew Goodnough [mailto:agoodno@yahoo.com] > Sent: Wednesday, 17 January 2001 6:31 > To: ant-user@jakarta.apache.org > Subject: Re: Dir attribute of the execute task. > > > Yes, it works to include the whole path in the executable > attribute - but what was the original intention of the dir > attribute? The note in the docs will be fine for me as > resolution. Thanks. > > Andy > > > --- Conor MacNeill wrote: > > Andy, > > > > I have looked at this. It seems that the command given > > must either be > > passed with a full path or it must exist in the path. You > > cannot rely on it > > just being in the directory where you want to execute it. > > > > Can you please verify that works, and if so, I will add > > something to the > > documentation and close the bug report. > > > > Conor > > > > ----- Original Message ----- > > From: "Andrew Goodnough" > > To: > > Sent: Wednesday, January 10, 2001 2:52 PM > > Subject: RE: Dir attribute of the execute task. > > > > > > > For the record, mine also worked when I switched to > > > JDK1.2.2. The problem is in Execute() but I'm not sure > > how > > > to fix it yet. Hopefully the bug report will mete this > > > out. Thanks all. > > > > > > Andy > > > > > > > > > > ===== > > Andrew Goodnough > agoodno@yahoo.com > > How do you know you've come far enough, until you've gone too far? > > - Sheldon Kopp > > > > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ >