Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 21877 invoked from network); 11 Jan 2010 20:29:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jan 2010 20:29:18 -0000 Received: (qmail 64276 invoked by uid 500); 11 Jan 2010 20:29:18 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 64238 invoked by uid 500); 11 Jan 2010 20:29:17 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 64107 invoked by uid 99); 11 Jan 2010 20:29:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2010 20:29:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2010 20:29:15 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7E82F234C1F0 for ; Mon, 11 Jan 2010 12:28:54 -0800 (PST) Message-ID: <1544455007.161161263241734516.JavaMail.jira@brutus.apache.org> Date: Mon, 11 Jan 2010 20:28:54 +0000 (UTC) From: "Geoff Reedy (JIRA)" To: notifications@ant.apache.org Subject: [jira] Created: (IVY-1162) ivy.settings.dir space escaping problem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org ivy.settings.dir space escaping problem --------------------------------------- Key: IVY-1162 URL: https://issues.apache.org/jira/browse/IVY-1162 Project: Ivy Issue Type: Bug Affects Versions: 2.1.0 Reporter: Geoff Reedy When an ivysettings file is included from a path with spaces in it, the ivy.settings.dir property becomes doubly escaped. I run into this problem when trying to configure the ivy classpath. This is causing a lot of pain for our team members using windows since they want to keep everything under their home directory which includes spaces in the path due to the "C:\Documents and Settings" directory. I'll be attaching a testcase which throws an exception when "java -jar ivy-2.1.0.jar -settings ivysettings.xml" is called. The exception root cause is: Caused by: java.lang.RuntimeException: impossible to define new type: class not found: Foo in [file:/tmp/x/dir%2520with%2520spaces/foo.jar] nor Ivy classloader at org.apache.ivy.core.settings.IvySettings.classForName(IvySettings.java:648) at org.apache.ivy.core.settings.IvySettings.typeDef(IvySettings.java:632) at org.apache.ivy.core.settings.IvySettings.typeDef(IvySettings.java:628) at org.apache.ivy.core.settings.XmlSettingsParser.typedefStarted(XmlSettingsParser.java:503) at org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:205) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:504) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1315) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2723) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:624) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:486) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:810) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:740) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:110) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525) at javax.xml.parsers.SAXParser.parse(SAXParser.java:392) at javax.xml.parsers.SAXParser.parse(SAXParser.java:274) at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160) ... 23 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.