Community
Participate
Working Groups
In many of the jars produced by CBI there is an extra file package.html that is being included which are not included in PDE.
concrete examples?
Created attachment 227896 [details] CBI org.eclipse.osgi jar contents
Created attachment 227897 [details] PDE org.eclipse.osgi jar contents
Attached 2 texts containing the contents of the jar files for PDE and CBI builds for org.eclipse.osgi. In the CBI case we see several package.html files which don't exist in the PDE jar. $ grep package.html /tmp/cbi-osgi-jar.log inflating: org/eclipse/osgi/framework/log/package.html inflating: org/eclipse/osgi/framework/eventmgr/package.html inflating: org/eclipse/osgi/framework/console/package.html inflating: org/eclipse/osgi/launch/package.html inflating: org/eclipse/osgi/util/package.html inflating: org/eclipse/osgi/storagemanager/package.html inflating: org/eclipse/osgi/service/resolver/package.html inflating: org/eclipse/osgi/service/datalocation/package.html inflating: org/eclipse/osgi/service/runnable/package.html inflating: org/eclipse/osgi/service/localization/package.html inflating: org/eclipse/osgi/service/security/package.html inflating: org/eclipse/osgi/service/environment/package.html inflating: org/eclipse/osgi/service/debug/package.html inflating: org/eclipse/osgi/signedcontent/package.html inflating: org/eclipse/core/runtime/adaptor/package.html
(In reply to comment #4) > In the CBI case we see several package.html files which don't exist in the > PDE jar. > > $ grep package.html /tmp/cbi-osgi-jar.log > inflating: org/eclipse/osgi/framework/log/package.html > inflating: org/eclipse/osgi/framework/eventmgr/package.html > inflating: org/eclipse/osgi/framework/console/package.html > inflating: org/eclipse/osgi/launch/package.html > inflating: org/eclipse/osgi/util/package.html the package.html files are there in the source folders, see [1] for example. By default all non-java files are copied over to the binary folder as resources by the tycho compiler plugin. I think that package.html is somehow a corner case since it qualifies as java "source" for javadoc. Starting from java 5, package-info.java [2] can be used instead (which would not be copied over). That said, you can always configure package.html to be excluded from resources being copied [3]: <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-compiler-plugin</artifactId> <version>${tycho-version}</version> <configuration> <excludeResources> <exclude>**/package.html</exclude> </excludeResources> </configuration> </plugin> [1] http://git.eclipse.org/c/equinox/rt.equinox.framework.git/tree/bundles/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/util [2] http://stackoverflow.com/questions/3644726/javadoc-package-html-or-package-info-java [3] http://eclipse.org/tycho/sitedocs/tycho-compiler-plugin/compile-mojo.html#excludeResources
Created attachment 227904 [details] parent.patch Patch for eclipse-platform-parent/pom.xml to exclude package.html from jars. Still needs testing.
Pushed into... master: http://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/commit/?id=c81adf76b546df102994e01dc72582c06b7f8f0d R4_2_maintenance: http://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/commit/?h=R4_2_maintenance&id=18f7ba27b34867d50fcebb9c9c39ea6b7164f0c2 R3_8_maintenance: http://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/commit/?h=R3_8_maintenance&id=d75c2aa3ab90cac7acab2ffeb2a286c551d61a32