Community
Participate
Working Groups
Created attachment 202294 [details] package explorer showing extra packages, such as src.org.eclipse.e4.core.commands In experimenting with different setups, I tried to to "import" from the current runtime target (which was Eclipse SDK Juno M1) checking "as source folders". (And, I selected all). Nearly all the "org.eclipse.e4..." bundles had compile errors, that appears to be due do many (or, all?) of the packages being created twice, once with the correct package name, and again prefixed by the segment 'src'. I'll attach a picture to be clear what I mean.
I've seen this before also.
Andrew, do you think this is a PDE problem or an issue with our 4.x build?
Created attachment 202650 [details] patch fixing build.properties for 4 projects I'm fairly sure this is at least mostly a project-setup issue. I don't recall PDE actually importing incorrectly with previous versions, when this error was made ... but, the root problem (I think) is that the build.properties files specifies src/ folder (and other extraneous files) in the "src.includes" properties. This causes the source to (basically) be exported twice, once in "correct" jar format, and another in directory format. I've attached a patch which corrects a few of the e4 projects, but there's many others. (I've created and attached this patch as my first against Git ... and have no idea what I'm doing :) so feedback about the patch itself would be welcome.) These src-include problems actually show up as warning in the build.properties file. You can set workspace or project settings to show these kind of issues as errors, instead of warnings. I recommend the "project level" settings, and will open an enhancement request for these e4 projects to adopt that setting.
Moving to platform UI. I suggest the changes be made to those UI/e4 plugins. (To be explicit, I personally am not worried about a "regression" in pde import since a) not sure there is one, and b) the build.properties is, after all, incorrect, and suppose it could be argued pde import is doing what its told :)
Thanks for the heads-up, David. I've fixed the problem in most of the Eclipse 4 UI bundles I saw. http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?h=R4_development&id=c4ae9ebb391a9e6ff25907b0434893ef114b2c68
Looks good to me with I20111025-2000. Thanks for the reporting the bug and for providing the solution, David!