Ant-Based Clustering of Alien OSGi Bundles

Today Toni blogged about the integration of alien OSGi bundles (I like that word 'alien'!) into NetBeans Platform applications created on top of Netigso. He describes how to do so manually. Below are some notes I got on 20/5 from Jarda outlining how to do it via Ant (i.e., not manually like Toni did it):

  1. Get build #145. (Or later, I assume.)

  2. Find a bunch of OSGi modules somewhere (Jarda used GlassFish v3).

  3. Then:
    ant -f $NETIGSO/harness/suite.xml clusterize -Dcluster=`pwd` -Dincludes=modules/\*\*

    or something like that (the includes may not be necessary).

  4. Then go to suite customizer (i.e., the Project Properties dialog of the NetBeans Platform application) and add that directory as a cluster.

  5. Add dependencies in your own modules/bundles on the cluster's new bundles.

The final step in Jarda's outline to me is to "report bugs or celebrate success". :-) I haven't tried the above procedure yet, but am just putting it out there just in case someone else (Toni?) gets a chance to try it.


Great, that's exactly what I was looking for! I didn't figure out the part with the suite customizer...

Posted by Toni Epple on May 26, 2009 at 04:12 AM PDT #

Excellent. Add another comment if/when it works!

Posted by Geertjan Wielenga on May 26, 2009 at 04:14 AM PDT #

you need to put the bundle in a directory called modules e.g.:


and then:

ant -f $NETIGSO/harness/suite.xml clusterize -Dcluster=plugins -Dincludes=modules/\*\*

Posted by Toni Epple on May 26, 2009 at 05:16 AM PDT #

Thanks! That's the missing info I was looking for. Later I am sure there will be ui support for this, e.g., "Import OSGi Bundle" menu item on application Libraries node in Projects window.

Posted by Geertjan on May 26, 2009 at 05:24 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« July 2015