[
http://jira.codehaus.org/browse/MOJO-797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann closed MOJO-797.
----------------------------------
Assignee: Benjamin Bentmann
Resolution: Fixed
Fixed in [r10785|http://fisheye.codehaus.org/changelog/mojo/?cs=10785].
> maven-xdoclet-plugin creates faulty classpath using m2-eclipse/maven-embedder
> w/latest classworlds
> --------------------------------------------------------------------------------------------------
>
> Key: MOJO-797
> URL: http://jira.codehaus.org/browse/MOJO-797
> Project: Mojo
> Issue Type: Bug
> Components: xdoclet
> Environment: Windows XP/maven embedder 2.1.0
> Reporter: Cliff Resnick
> Assignee: Benjamin Bentmann
>
> The problem occurs when the OS is windows and the local_repo is under
> "Documents and Settings/user/.m2", very common setup in windows, or any
> situation where the repo is under a directory where the name contains space
> characters.
> The classworlds supplied URL[] array elements are encoded, with"%20" for
> spaces, and the classpath is unusable with this encoding.
> Preventing this is easy; in the XDocletMojo just change:
> classpath += (classpath.length() == 0 ?"" :
> java.io.File.pathSeparator ) + cpe[i].getFile();
> to
> classpath += (classpath.length() == 0 ?"" :
> java.io.File.pathSeparator ) + URLDecoder.decode(cpe[i].getFile(),"UTF-8");
> I don't know why this crept in just now. I'm using the latest classworlds to
> patch an otherwise broken maven-embedder 2.1.0, in oder to use an M2 Eclipse
> plugin version that works with settings.xml. I got everything working great,
> but I did have to patch this plugin, though in fact the problem might be with
> classworlds. In any event, it's a good defensive measure.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email