ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <>
Subject [jira] Resolved: (IVY-1162) ivy.settings.dir space escaping problem
Date Tue, 12 Jan 2010 10:12:54 GMT


Maarten Coene resolved IVY-1162.

       Resolution: Fixed
    Fix Version/s: trunk
         Assignee: Maarten Coene

Fixed in SVN trunk. Could you give it a try?
In addition, if you use the trunk version, you don't have to use the ${ivy.settings.dir} property
any longer, you can simply do:

  <classpath file="foo.jar"/>
  <typedef name="foo" classname="Foo"/>


> ivy.settings.dir space escaping problem
> ---------------------------------------
>                 Key: IVY-1162
>                 URL:
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Geoff Reedy
>            Assignee: Maarten Coene
>             Fix For: trunk
>         Attachments:
> 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
> 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(
> 	at org.apache.ivy.core.settings.IvySettings.typeDef(
> 	at org.apache.ivy.core.settings.IvySettings.typeDef(
> 	at org.apache.ivy.core.settings.XmlSettingsParser.typedefStarted(
> 	at org.apache.ivy.core.settings.XmlSettingsParser.startElement(
> 	at
> 	at
> 	at
> 	at$
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at$JAXPSAXParser.parse(
> 	at javax.xml.parsers.SAXParser.parse(
> 	at javax.xml.parsers.SAXParser.parse(
> 	at org.apache.ivy.core.settings.XmlSettingsParser.doParse(
> 	... 23 more

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message