Community
Participate
Working Groups
In the javadoc of the IBundleProjectService.setBundleRoot() it is written that the bundleRoot argument can be null. In this case the bundle root is the project's root location. But if I call setBundle(project, null), then the following exception is thrown: java.lang.IllegalArgumentException: Path must include project and resource name: /test at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63) at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1795) at org.eclipse.core.internal.resources.Container.getFolder(Container.java:221) at org.eclipse.pde.internal.core.project.BundleProjectService.setBundleRoot(BundleProjectService.java:174) ...
Created attachment 177087 [details] test case A simple test case attached.
Created attachment 177089 [details] patch And a simple patch attached.
Comment on attachment 177089 [details] patch Applied fix.
Created attachment 177099 [details] patch to existing test class
Fixed.
Also fixed in 3.6.1
Verified in 3.6.x branch.