Return-Path: Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 30486 invoked by uid 500); 19 Jul 2003 19:09:48 -0000 Mailing-List: contact dev-help@ant.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 dev@ant.apache.org Received: (qmail 30403 invoked from network); 19 Jul 2003 19:09:47 -0000 Received: from relay.t-intra.de (HELO relay.t-online-com.de) (62.156.147.74) by daedalus.apache.org with SMTP; 19 Jul 2003 19:09:47 -0000 Received: from DJ0X820J (p5080eb31.dip0.t-ipconnect.de [80.128.235.49]) by relay.t-online-com.de (SMTPSVC(1.0.0.1)) with ESMTP id E04E0150024 for ; Sat, 19 Jul 2003 20:24:05 +0200 (CEST) Message-ID: <00a801c34e12$62a1e1e0$020200c0@DJ0X820J> From: "Antoine Levy-Lambert" To: "Ant Developers List" Subject: java.io.File behavior on Windows / DirectoryScanner Date: Sat, 19 Jul 2003 18:25:35 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00A5_01C34E23.258EC000" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_00A5_01C34E23.258EC000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable A little test illustrating the problem : public class testfilename { public static void main(String [] args){ File f =3D new File("C:/dev/asf/ANT"); File b =3D new File(f, "BuIld.xml"); System.out.println(f.toString()); System.out.println(b.toString()); } } Output C:\dev\asf\ANT C:\dev\asf\ANT\BuIld.xml Real directory/file name=20 C:\dev\asf\ant C:\dev\asf\ant\build.xml ------=_NextPart_000_00A5_01C34E23.258EC000--