Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 96150 invoked by uid 500); 15 Jul 2003 06:36:11 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 96139 invoked from network); 15 Jul 2003 06:36:11 -0000 Received: from s-97-26.dsl.cleardatavoice.com (HELO gridnode.com) (202.83.97.26) by daedalus.apache.org with SMTP; 15 Jul 2003 06:36:11 -0000 Received: from daniel ([192.168.213.146]) by gridnode.com (8.11.6p2/8.9.3) with SMTP id h6F6j6E12633 for ; Tue, 15 Jul 2003 14:45:06 +0800 Reply-To: From: "Daniel Joshua" To: "'Ant Users List'" Subject: RE: Failing when including XML who's path has a space in it Date: Tue, 15 Jul 2003 14:36:45 +0800 Message-ID: <007b01c34a9b$768c2c30$92d5a8c0@sgxdev.gridnode.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 CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <5.2.0.9.2.20030714175536.0291b7c8@shell.visi.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N The current behavior is correct. Spaces in URLs must be %-escaped. It was a bug (4359123) that the URLs returned by the Class.getResource method were not being escaped in previous releases. So what should be the correct way to handle the below problem ? Regards, Daniel -----Original Message----- From: Jacob Kjome [mailto:hoju@visi.com] Sent: Tuesday, 15 July, 2003 6:57 AM To: Ant Users List Subject: Re: Failing when including XML who's path has a space in it What JDK are you using now and which one were you using then? If JDK1.3.x then and 1.4.x now, see the following... http://developer.java.sun.com/developer/bugParade/bugs/4466485.html Jake At 03:03 PM 7/14/2003 -0700, you wrote: >Okay, this used to work, but now doesn't.... I'm baffled and was hoping >that someone on the list had run into this before. > >What happens is that I'm including some XML in a build.xml - normal >enough. Here's the definition: > > > ]> > > > &install; >Note that there are no "spaces" in the definition. Rather the "spaces" >are in the current path for this file - i.e. "c:\hal\test installation\". > >So when I run ant on this build file I get: > >C:\hal\test%20installation\internal\install.xml could not be found > >Note the %20 translation of the space. > >So, what happened? I was doing this a couple of months ago with no issues.... > >Hopefully someone out there with more XML savvy than I has run into this >issue and has a quick "Take the spoon out of the cup before drinking it" >kind of fix. > >Many thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org