Bug 243689 - Features not built from the Update Site editor if the instalation path contains spaces
Summary: Features not built from the Update Site editor if the instalation path contai...
Status: RESOLVED DUPLICATE of bug 208611
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-10 14:30 EDT by Abel Muiño CLA
Modified: 2008-08-10 14:44 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Abel Muiño CLA 2008-08-10 14:30:34 EDT
Eclipse Ganymede for JEE installed at a path with spaces on it ("/Users/amuino/dev/eclipse-versions/eclipse-jee-ganymede copia/").

Adding a feature to an existing update site and then pressing the "Build" button causes a build error.

At the root of it is an URISyntaxException caused by the unescaped space on the path to the ant plug-in.

This seems to be caused by Bug 145096 and/or Bug 212243.


The full stacktrace is: 
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162)
at org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
at org.apache.tools.ant.Project.setAntLib(Project.java:313)
at org.apache.tools.ant.Project.initProperties(Project.java:309)
at org.apache.tools.ant.Project.init(Project.java:295)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:520)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:456)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.cleanup(FeatureExportOperation.java:633)
at org.eclipse.pde.internal.core.exports.FeatureBasedExportOperation.run(FeatureBasedExportOperation.java:55)
at org.eclipse.pde.internal.ui.build.FeatureExportJob.run(FeatureExportJob.java:55)
at org.eclipse.pde.internal.ui.build.BuildSiteJob.run(BuildSiteJob.java:57)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.net.URISyntaxException: Illegal character in path at index 60: file:/Users/amuino/dev/eclipse-versions/eclipse-jee-ganymede copia/plugins/org.apache.ant_1.7.0.v200803061910/lib/ant.jar
at java.net.URI$Parser.fail(URI.java:2816)
at java.net.URI$Parser.checkChars(URI.java:2989)
at java.net.URI$Parser.parseHierarchical(URI.java:3073)
at java.net.URI$Parser.parse(URI.java:3021)
at java.net.URI.<init>(URI.java:578)
at java.net.URI.create(URI.java:840)
... 22 more
Comment 1 Chris Aniszczyk CLA 2008-08-10 14:35:52 EDT
surprisingly enough, this is an Ant issue and is fixed in Ant 1.7.1 which ships with 3.5M1

*** This bug has been marked as a duplicate of bug 208611 ***