From ant-user-return-13287-apmail-jakarta-ant-user-archive=jakarta.apache.org@jakarta.apache.org Thu Oct 04 06:59:53 2001 Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 28784 invoked by uid 500); 4 Oct 2001 06:59:52 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 28592 invoked from network); 4 Oct 2001 06:59:48 -0000 Message-Id: <4.3.1.2.20011004090334.01f02f50@lucas> X-Sender: jchees@lucas X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Thu, 04 Oct 2001 09:05:28 +0200 To: ant-user@jakarta.apache.org From: Jim Cheesman Subject: RE: using properties files In-Reply-To: <079FD72E42C9D311B854009027650E6F07082A0E@xatl02.atl.hp.com > Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N At 08:01 PM 03/10/01, you wrote: >If I had this: > >mypath=c:\program files\some thing\hello > >it wouldn't work... > >I needed to escape the slashes and all works fine... > >i.e. mypath=c:\\program files\\some thing\\hello That's a windows thing... I've got into the habit of writing all the directory slashes the other way round - not standard windows, but avoids the problems you mention. (Note that it works in java code, but not in Windows.) Cleaner would be (where possible) to use File.separator, but that's not always an option. Jim -- * Jim Cheesman * Trabajo: jchees@msl.es - (34)(91) 724 9200 x 2360 I have a twin brother; he's identical, but I'm not.