Ceki, Hugues,<div><br></div><div>Any comments on my work?</div><div>Should I proceed that way for the other modules?</div><div><br></div><div>Heiko<br><br><div class="gmail_quote">On 16 September 2010 10:11, Heiko Seeberger <span dir="ltr"><<a href="mailto:heiko.seeberger@googlemail.com">heiko.seeberger@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Folks,</div><div><br></div><div>My first shot at OSGi work for slf4j-api can be taken from here (not yet ready for pulling into the main repo):</div>
<div><a href="http://github.com/weiglewilczek/slf4j/tree/osgi" target="_blank">http://github.com/weiglewilczek/slf4j/tree/osgi</a></div>
<div><br></div><div>Now the Felix Bundle plugin creates the manifest. It looks like below (not the plain manifest, but the output of analyzing with BND). As you can see all the issues I recently brought up are addressed, e.g. naming convention for Bundle-Symbolicname, execution environment bumped up to 1.4, etc. </div>
<div><br></div><div>As all the logging backends are fragments I excluded org.slf4j.impl package from imported packages. This means you can install the slf4j-api bundle in an OSGi container successfully without a backend. Not sure whether this is what we want.</div>
<div><br></div><div>Very important: The whole build still succeeds.</div><div><br></div><div>What do you think? Can we proceed this way?</div><div><br></div><div>Heiko</div><div><br></div><div><br></div><div>slf4j$ bnd print slf4j-api/target/slf4j-api-1.6.2-SNAPSHOT.jar </div>
<div>+++ Starting BND +++</div><div>[MANIFEST slf4j-api-1.6.2-SNAPSHOT.jar]</div><div>Bnd-LastModified 1284623539661 </div><div>Build-Jdk 1.6.0_20 </div>
<div>Built-By hseeberger </div><div>Bundle-Description The slf4j API </div><div>Bundle-DocURL <a href="http://www.qos.ch" target="_blank">http://www.qos.ch</a> </div>
<div>Bundle-License <a href="http://www.opensource.org/licenses/mit-license.php" target="_blank">http://www.opensource.org/licenses/mit-license.php</a></div><div>Bundle-ManifestVersion 2 </div>
<div>Bundle-Name SLF4J API Module </div><div>Bundle-RequiredExecutionEnvironment J2SE-1.4 </div><div>Bundle-SymbolicName org.slf4j.api </div>
<div>Bundle-Vendor QOS.ch </div><div>Bundle-Version 1.6.2.SNAPSHOT </div><div>Created-By Apache Maven Bundle Plugin </div>
<div>Export-Package org.slf4j.spi;uses:="org.slf4j";version="1.6.2.SNAPSHOT",org.slf4j.helpers;uses:="org.slf4j.spi,org.slf4j";version="1.6.2.SNAPSHOT",org.slf4j;uses:="org.slf4j.helpers,org.slf4j.spi";version="1.6.2.SNAPSHOT"</div>
<div>Ignore-Package org.slf4j.impl </div><div>Implementation-Title slf4j-api </div><div>Import-Package org.slf4j;version="[1.6.2.SNAPSHOT,1.7)",org.slf4j.helpers;version="[1.6.2.SNAPSHOT,1.7)",org.slf4j.spi;version="[1.6.2.SNAPSHOT,1.7)"</div>
<div>Manifest-Version 1.0 </div><div>Tool Bnd-0.0.357 </div><div><br></div><div>[IMPEXP]</div><div>
Export-Package</div><div> org.slf4j {version=1.6.2.SNAPSHOT}</div><div> org.slf4j.helpers {version=1.6.2.SNAPSHOT}</div><div> org.slf4j.spi {version=1.6.2.SNAPSHOT}</div>
<div><br></div><div>[USES]</div><div>org.slf4j org.slf4j.helpers</div><div> org.slf4j.impl</div><div> org.slf4j.spi</div>
<div>org.slf4j.helpers org.slf4j</div><div> org.slf4j.spi</div><div>org.slf4j.spi org.slf4j</div><div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br>Heiko Seeberger<br><br>Company: <a href="http://weiglewilczek.com" target="_blank">weiglewilczek.com</a><br>Blog: <a href="http://heikoseeberger.name" target="_blank">heikoseeberger.name</a><br>
Follow me: <a href="http://twitter.com/hseeberger" target="_blank">twitter.com/hseeberger</a><br>OSGi on Scala: <a href="http://scalamodules.org" target="_blank">scalamodules.org</a><br>Lift, the simply functional web framework: <a href="http://liftweb.net" target="_blank">liftweb.net</a><br>
Akka - Simpler Scalability, Fault-Tolerance, Concurrency & Remoting through Actors: <a href="http://akkasource.org" target="_blank">akkasource.org</a><br>
</div>