Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 61974 invoked from network); 30 Sep 2000 04:15:37 -0000 Received: from smtp3.mail.yahoo.com (HELO smtp1b.mail.yahoo.com) (128.11.68.135) by locus.apache.org with SMTP; 30 Sep 2000 04:15:37 -0000 Received: from cpe-203-45-133-154.qld.bigpond.net.au (HELO adam) (203.45.133.154) by smtp.mail.vip.suc.yahoo.com with SMTP; 30 Sep 2000 04:15:38 -0000 X-Apparently-From: From: "Adam Murdoch" To: Subject: RE: Foreslashes vs. backslashes Date: Sat, 30 Sep 2000 14:17:09 +1000 Message-ID: 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 IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Importance: Normal In-Reply-To: <20000930031557.17690.qmail@web111.yahoomail.com> X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi, One possible culprit: Project.resolveFile(). This is used almost everywhere in ant to convert a user supplied file name into a File object. However, it does not call File.getCanonicalPath() on the return value if the file name is absolute. It does if the file name is relative. On newer JVMs, this doesn't matter, since the File class automatically translates all '/' and '\' characters to the appropriate value for the platform. On older JVMs, however, File does nothing to the supplied value. So, when ant later uses the file by calling toString() or getAbsolutePath(), sometimes the file contains '/' (if the user supplied file name was absolute) and sometimes '\' (if the file name was relative). Adam -----Original Message----- From: Diane Holt [mailto:holtdl@yahoo.com] Sent: Saturday, 30 September 2000 1:16 PM To: ant-dev@jakarta.apache.org Subject: Foreslashes vs. backslashes I'm running ant on an NT, so ant thinks I'm a backslashes system, but I run under MKS on the NT, so I don't really need all the fore-to-backslash conversion. And it turns out ant only does it for some paths, not for all paths, so I end up looking at output that's full of separator stew. Is there any way around this? (I'm thinking people using cygwin bash would have a similar situation.) Thanks, Diane ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/ _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com