I pulled the logback code V 1.1.6 from github and made it compact3 compatible.
To reach that goal I did the following:
-
Removed dependencies on java.beans., sun., com.sun.* packages, which are not included in the compact3 Profile.
-
Copied the relevant .java files out of java-1.6.0-openjdk-1.6.0.37.x86_64 directly into logback-core source code under the packages ch.qos.logback.core.joran.util.<original-package-name>
-
Realized that there are references on java.awt from java.beans
-
Deleted the code, which had references on java.awt from the copied java files.
-
Build the project with "mvn clean install"
-
For unknown reasons the resulting jars had some messed up OSGI directives in the MANIFEST.MF. Therefore I copied the 'Import-Package:' directive from the original 1.1.6 release.
-
In additon the MANIFEST.MF contained the directive 'Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.6))"', which wasn't there in 1.1.2 and isn't compatible with our own project's build, therefore I removed it, which worked fine.
The result are the attached jars logback-core-compact3-1.1.6.jar , and logback-classic-compact3-1.1.6.jar and their associated source jars. I created a compac3 profile JRE on which the libraries seem to run without any problem. We use the libraries only with an XML-Configuration-File, so no guarantees, that there are no errors in general.
|