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