Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 189387 - plug-in export fails when there are spaces on ant.jar path
Summary: plug-in export fails when there are spaces on ant.jar path
Status: RESOLVED DUPLICATE of bug 187993
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-28 05:29 EDT by theone256 CLA
Modified: 2007-07-04 10:31 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 theone256 CLA 2007-05-28 05:29:08 EDT
Build ID: I20070525-1350

Steps To Reproduce:
1:Install eclipse in a directory with spaces (ex:"~/eclipse 3.3/")
2:Create a plug-in.
3:Try to export this plug-in
4:Build fails

More information:
If there are spaces on the path to ant.jar in the org.apache.ant plug-in, then plug-in export fails with an error message ("BUILD FAILED").

The logged exception 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:597)
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:597)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:377)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.cleanup(FeatureExportOperation.java:579)
at org.eclipse.pde.internal.core.exports.FeatureBasedExportOperation.run(FeatureBasedExportOperation.java:55)
at org.eclipse.pde.internal.ui.build.FeatureExportJob.run(FeatureExportJob.java:59)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.net.URISyntaxException: Illegal character in path at index 30: file:/home/nicolas/bin/eclipse 3.3RC2/plugins/org.apache.ant_1.7.0.v200705232135/lib/ant.jar
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parseHierarchical(URI.java:3066)
at java.net.URI$Parser.parse(URI.java:3014)
at java.net.URI.<init>(URI.java:578)
at java.net.URI.create(URI.java:840)
... 21 more
Comment 1 Jeff McAffer CLA 2007-05-28 08:22:24 EDT
sounds like a known problem in some of the Ant versions.  I thought it had been addressed.  Might need to follow up with the Ant team.
Comment 2 Pascal Rapicault CLA 2007-05-28 08:50:25 EDT
This has been addressed in RC1 by the eclipse ant support.
Comment 3 Philippe Ombredanne CLA 2007-07-02 20:23:31 EDT
see bug#193833 and bug#187993 .
The problem is not solved.
This impact pde exports in a major way imho :-)
and the ant bug was shipped with 3.3 final
Comment 4 Andrew Niefer CLA 2007-07-04 10:31:24 EDT
still a problem
Comment 5 Andrew Niefer CLA 2007-07-04 10:31:37 EDT

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