Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Publishing exported packages with specific version in ecj.jar?
Publishing exported packages with specific version in ecj.jar? [message #1720707] Wed, 20 January 2016 06:55 Go to next message
Eclipse UserFriend
Hello,

I would like to ask if it would be possible to adjust the Export-Packages header with specific package versions inside the ECJ bundle (jar) (e.g. ecj-4.x.y.jar).

Currently the Export-Package header (in MANIFEST.MF) looks like this (ecj-4.5.jar):
Export-Package = 
	org.eclipse.jdt.core,
	org.eclipse.jdt.core.compiler,
	org.eclipse.jdt.internal.antadapter;x-internal:=true,
	org.eclipse.jdt.internal.compiler;x-internal:=true,
	org.eclipse.jdt.internal.compiler.apt.dispatch;x-internal:=true,
	org.eclipse.jdt.internal.compiler.apt.model;x-internal:=true,
	org.eclipse.jdt.internal.compiler.apt.util;x-internal:=true,
	org.eclipse.jdt.internal.compiler.ast;x-internal:=true,
	org.eclipse.jdt.internal.compiler.batch;x-internal:=true,
	org.eclipse.jdt.internal.compiler.classfmt;x-internal:=true,
	org.eclipse.jdt.internal.compiler.codegen;x-internal:=true,
	org.eclipse.jdt.internal.compiler.env;x-internal:=true,
	org.eclipse.jdt.internal.compiler.flow;x-internal:=true,
	org.eclipse.jdt.internal.compiler.impl;x-internal:=true,
	org.eclipse.jdt.internal.compiler.lookup;x-internal:=true,
	org.eclipse.jdt.internal.compiler.parser;x-internal:=true,
	org.eclipse.jdt.internal.compiler.parser.diagnose;x-internal:=true,
	org.eclipse.jdt.internal.compiler.problem;x-internal:=true,
	org.eclipse.jdt.internal.compiler.util;x-internal:=true,
	org.eclipse.jdt.internal.compiler.tool;x-internal:=true


No package version specified.

We are using ECJ inside Apache Karaf and would like to depend on specific version range of the ECJ to make sure our bundle works as expected. However, the ECJ bundle (e.g. ecj-4.4.2.jar) does not export the packages in specific version, thus the version is defaulted to 0.0.0. So we either need to depend on version 0.0.0 which is weird and error prone or wrap the bundle with own OSGi metadata (e.g. adding the package versions using the wrap protocol). It would be great if the versions could be in the bundle directly. Would that be possible?

Thanks for any response,
Petr
Re: Publishing exported packages with specific version in ecj.jar? [message #1722451 is a reply to message #1720707] Thu, 04 February 2016 16:32 Go to previous message
Eclipse UserFriend
The manifest has the version in its Bundle-Version: header. I don't understand why that doesn't suffice, but if you can argue, why you need additional versioning on the packages, feel free to file a bug, and details can be discussed there.
Stephan
Previous Topic:IElementChangedListener and Source Attachments
Next Topic:Add a method call in a block statement
Goto Forum:
  


Current Time: Sun Nov 09 18:35:57 EST 2025

Powered by FUDForum. Page generated in 0.03429 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top