From dev-return-49861-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Fri Aug 22 17:22:07 2003 Return-Path: Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 597 invoked by uid 500); 22 Aug 2003 17:22:07 -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 563 invoked from network); 22 Aug 2003 17:22:05 -0000 Received: from relay.t-intra.de (HELO relay.t-online-com.de) (62.156.147.74) by daedalus.apache.org with SMTP; 22 Aug 2003 17:22:05 -0000 Received: from DJ0X820J (p5080e515.dip0.t-ipconnect.de [80.128.229.21]) by relay.t-online-com.de (SMTPSVC(1.0.0.2)) with ESMTP id B727914CA81; Fri, 22 Aug 2003 18:50:45 +0200 (CEST) Message-ID: <049101c368ce$13ef2fe0$020200c0@DJ0X820J> From: "Antoine Levy-Lambert" To: "Ant Developers List" , References: <200308171147.55752.ajb@blakey.org> Subject: Re: Bug? 1.6 Date: Fri, 22 Aug 2003 18:54:35 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 Adrian, can you open a bug report on http://nagoya.apache.org/bugzilla concerning your problem. Thanks in advance Antoine ----- Original Message ----- From: "Adrian Blakey" To: Sent: Sunday, August 17, 2003 8:47 PM Subject: Bug? 1.6 > I suspect there is a bug in ResourceLocation. > > I encounter the bug in XMLCatalog by running the xslt task with an xmlcatalog > sub-task. It occurs when trying to load a dtd from the local file system on > Windows. The bug does not occur under Linux/U**X - you'll see why below. > > At around about line 675 in XMLCatalog: > url = new URL(baseURL, uri); > > This thows due to the fact that the uri is not a well formed uri when running > under Windows. Further up the code: > > private InputSource filesystemLookup(ResourceLocation matchingEntry) { > > String uri = matchingEntry.getLocation(); > > getLocation under windows will return something like: > > C:\top\of\tree/rest/of/path/for/the/dtd > > The baseUrl would be something like: > > file:/C:/basedir > > getLocation (or another method?) needs to return > > /C:\top\of\tree/rest/of/path/for/the/dtd <- which is a bit more like a valid > uri > > I guess there are a couple of ways to fix this. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org