Bug 187993 - Export of plugin failed in 3.3rc1 for Mac / Linux etc
Summary: Export of plugin failed in 3.3rc1 for Mac / Linux etc
Status: VERIFIED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.3   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.5 M1   Edit
Assignee: Darin Swanson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 189387 193119 193833 288186 (view as bug list)
Depends on: 209504
Blocks:
  Show dependency tree
 
Reported: 2007-05-20 10:34 EDT by Frank Becker CLA
Modified: 2009-09-02 14:12 EDT (History)
7 users (show)

See Also:


Attachments
screencap as requested (279.99 KB, image/png)
2007-05-24 14:24 EDT, Kim Horne CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Becker CLA 2007-05-20 10:34:49 EDT
-- Error Log --
Date: Sun May 20 16:30:20 CEST 2007
Message: BUILD FAILED
Severity: Error
Plugin ID: org.eclipse.ant.core
Stack Trace:
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:377)
	at org.eclipse.pde.internal.core.exports.FeatureExportOperation.cleanup(FeatureExportOperation.java:579)
	at org.eclipse.pde.internal.core.exports.FeatureExportOperation.run(FeatureExportOperation.java:143)
	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 13: file:/weitere Programme/eclipse33rc1/plugins/org.apache.ant_1.7.0.v200704241635/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)
	... 21 more
Comment 1 Frank Becker CLA 2007-05-20 11:13:06 EDT
Hi, 

Ifound a woarkaround. If I change my folder "weitere Programme" to "weitereProgramme" (removing the space) I can export the feature.

If look like ANT 1.7 hase problems with spaces in path arguments. With ANT 1.6.5 (used with 3.3M6) i can work with "weitere Programme"
Comment 2 Darin Swanson CLA 2007-05-20 15:22:56 EDT
Thank you for the bug report.

We have worked on this issue for 3.3 RC1 (see bug 183283).

Are you sure that you are using Eclipse RC1?
Help> About Eclipse SDK
What is the Build id?
Comment 3 Frank Becker CLA 2007-05-20 16:11:01 EDT
(In reply to comment #2)
> Thank you for the bug report.
> 
> We have worked on this issue for 3.3 RC1 (see bug 183283).
> 
> Are you sure that you are using Eclipse RC1?
> Help> About Eclipse SDK
> What is the Build id?
> 
My Version is 3.3.0 with Build id: I20070517-1700

Comment 4 John Arthorne CLA 2007-05-24 09:52:52 EDT
Kim, if you have a minute, would you mind trying this on your Mac with any build from this week? Darin and I are unable to reproduce it, but perhaps it is a Mac-specific problem. Here are the steps to try:

1) File > New > Project... > Plugin Project
2) Give it any name, and uncheck "use default location". Give it a location containing spaces in the path.
3) Click next, click finish.
4) Right click the project > Export > Deployable plugins and fragments.
5) Pick any location and click finish.
Comment 5 Kim Horne CLA 2007-05-24 09:57:19 EDT
That testcase worked for me John
Comment 6 Darin Swanson CLA 2007-05-24 10:24:03 EDT
Thanks for checking guys...and just to insure...can you try the same test case with Eclipse installed in a location with spaces in the path?.
Comment 7 Kim Horne CLA 2007-05-24 13:51:24 EDT
Darin: if I move Eclipse to a directory with a space in the name I see the problem described.
Comment 8 Darin Swanson CLA 2007-05-24 14:05:20 EDT
Thanks. Investigating.
Comment 9 Kim Horne CLA 2007-05-24 14:24:14 EDT
Created attachment 68629 [details]
screencap as requested
Comment 10 Darin Swanson CLA 2007-05-24 14:37:47 EDT
Unfortunately the workaround introduced for bug 183283 only works for Windows due to the different representations of paths.

I see no way to programmatically work around the Ant bug (http://issues.apache.org/bugzilla/show_bug.cgi?id=42222) in this case.

The workaround is to not install in a location with spaces.
Comment 11 Darin Swanson CLA 2007-06-06 20:46:56 EDT
Section added to the known issues of the Eclipse readme via bug 185753.

The bug is fixed for Ant 1.7.1. Hopefully it will ship to be released with Eclipse 3.3.1.
Comment 12 Darin Swanson CLA 2007-06-18 13:31:51 EDT
*** Bug 193119 has been marked as a duplicate of this bug. ***
Comment 13 Darin Swanson CLA 2007-06-21 17:48:17 EDT
*** Bug 193833 has been marked as a duplicate of this bug. ***
Comment 14 Andrew Niefer CLA 2007-07-04 10:31:37 EDT
*** Bug 189387 has been marked as a duplicate of this bug. ***
Comment 15 Darin Swanson CLA 2008-03-31 16:13:30 EDT
Still waiting on Ant 1.7.1
Comment 16 Darin Swanson CLA 2008-07-21 12:36:59 EDT
Ant 1.7.1 has been rolled up into our Apache Ant plug-in and will be in the integration build of this week.

Can someone with a Mac please ensure this problem is fixed in 1.7.1? Thanks.
Comment 17 Frank Becker CLA 2008-07-24 23:02:08 EDT
(In reply to comment #16)
> Ant 1.7.1 has been rolled up into our Apache Ant plug-in and will be in the
> integration build of this week.
> 
> Can someone with a Mac please ensure this problem is fixed in 1.7.1? Thanks.
> 

I did a test with 3.5 I20080724-1200 and it works like expected (no error anymore).

Tested on a MacBook Pro running Mac OS X 10.5.4
Comment 18 Darin Swanson CLA 2008-07-24 23:24:52 EDT
Thank you Frank
Comment 19 Andrew Niefer CLA 2009-09-02 14:12:04 EDT
*** Bug 288186 has been marked as a duplicate of this bug. ***