Bug 236040 - Exception while opening certain build.properties file
Summary: Exception while opening certain build.properties file
Status: VERIFIED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 trivial (vote)
Target Milestone: 4.5 M6   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, greatfix
Depends on:
Blocks:
 
Reported: 2008-06-06 09:55 EDT by Dmitry Stadnik CLA
Modified: 2015-03-19 06:19 EDT (History)
5 users (show)

See Also:


Attachments
props (78 bytes, text/plain)
2008-06-06 09:56 EDT, Dmitry Stadnik CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Stadnik CLA 2008-06-06 09:55:04 EDT
1. Create a plugin project
2. Replace build.properties with the attached file
3. Open manifest editor
4. Switch to a Build page

null
Error
Fri Jun 06 15:51:33 CEST 2008
Unhandled event loop exception

org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Path must include project and resource name: /zzz)
at org.eclipse.swt.SWT.error(SWT.java:3775)
at org.eclipse.swt.SWT.error(SWT.java:3693)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3335)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3064)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2387)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2351)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2203)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:112)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:379)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.IllegalArgumentException: Path must include project and resource name: /zzz
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:64)
at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1628)
at org.eclipse.core.internal.resources.Container.getFolder(Container.java:130)
at org.eclipse.pde.internal.ui.editor.build.BuildContentsSection$5.run(BuildContentsSection.java:279)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.pde.internal.ui.editor.build.BuildContentsSection$4.run(BuildContentsSection.java:255)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:132)
... 23 more
Comment 1 Dmitry Stadnik CLA 2008-06-06 09:56:34 EDT
Created attachment 103949 [details]
props
Comment 2 Chris Aniszczyk CLA 2008-06-06 10:12:12 EDT
it looks like it's the extra slash in there causing the problem

source.. = src/
output.. = bin/
bin.includes = META-INF/,\
               .,\ <--- trouble maker

I'm going to tag this as bugday as the fix should be to make our BuildErrorReporter a bit more resilient.
Comment 3 Eclipse Genie CLA 2015-03-03 04:30:44 EST
New Gerrit change created: https://git.eclipse.org/r/43061
Comment 5 Dani Megert CLA 2015-03-06 07:07:51 EST
.
Comment 6 Tomasz Zarna CLA 2015-03-06 15:17:57 EST
Fixed with the commit above.
Comment 7 Vikas Chandra CLA 2015-03-19 06:19:14 EDT
Verified on

Version: Mars (4.5)
Build id: I20150318-2000