File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scala programming language as an OSGi bundle

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Scala programming language can be delivered as an OSGi bundle.
What are the steps Scala maintainers did to release Scala as a bundle, any special thing? because I want to deliver Clojure as a bundle (assuming it is possible).
Thank you.
 
Richard S. Hall
author
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Todd wrote:Hi,
Scala programming language can be delivered as an OSGi bundle.
What are the steps Scala maintainers did to release Scala as a bundle, any special thing? because I want to deliver Clojure as a bundle (assuming it is possible).
Thank you.


Sorry, I don't have any knowledge about what they did, so maybe on of the other authors can help.
 
Stuart McCulloch
author
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Todd wrote:What are the steps Scala maintainers did to release Scala as a bundle, any special thing? because I want to deliver Clojure as a bundle (assuming it is possible).

Most of the time all you need to do is add the appropriate OSGi metadata to your JAR manifest, namely Bundle-SymbolicName + Bundle-Version to give it a unique identity along with Export-Package and Import-Package to declare what it provides and what it consumes. There are several tools out there to help you add the necessary headers, the most flexible probably being bnd which is the one we tend to use in OSGi in Action. I should also mention that this metadata won't affect existing non-OSGi users of your JAR.

You might also find this discussion useful: http://www.scala-lang.org/node/1413
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic