jfreechart - osgi bundle

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
muruvetri
Posts: 2
Joined: Fri Feb 08, 2008 5:29 pm

jfreechart - osgi bundle

Post by muruvetri » Wed Feb 13, 2008 5:59 pm

We are planning to use the eclipse RCP frame work, just wondering you guys have OSGi bundle already created.

If you using maven2 build your stuff, we can supply the POM that will make it as osgi-bundle though.
sample of how to make it. Just wanted not create our own version of the bundle though

<dependencies>
<dependency>
<groupId>jfree</groupId>
<artifactId>jfreechart</artifactId>
<version>1.0.9</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>jfree</groupId>
<artifactId>jfreechart-swt</artifactId>
<version>1.0.9</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>jfree</groupId>
<artifactId>jcommon</artifactId>
<version>1.0.12</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.eclipse.swt</groupId>
<artifactId>org.eclipse.swt</artifactId>
<version>3.3.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.eclipse.swt</groupId>
<artifactId>org.eclipse.swt.win32.win32.x86</artifactId>
<version>3.3.0</version>
<scope>provided</scope>
</dependency>
</dependencies>

<plugin>
<!-- Generate an OSGi-compatible MANIFEST.MF -->
<groupId>com.cerner.engineering</groupId>
<artifactId>cerner-osgi-plugin</artifactId>
<configuration>
<symbolicName>com.cerner.genesis.jfreechart.osgi</symbolicName>
<classpath>runtime/jfreechart.jar, runtime/jfreechart-swt.jar, runtime/jcommon.jar</classpath>
<requiredExecutionEnvironment>J2SE-1.4</requiredExecutionEnvironment>
<exportPackages>
<enabled>false</enabled>
</exportPackages>
<headers>
<header>
<!-- TODO: Append version numbers to exported packages? -->
<name>Export-Package</name>
<append>true</append>
<values>
<value>
<name>
com.keypoint, org.jfree, org.jfree.base, org.jfree.base.config,
org.jfree.base.log, org.jfree.base.modules, org.jfree.chart,
org.jfree.chart.annotations, org.jfree.chart.axis, org.jfree.chart.block,
org.jfree.chart.demo, org.jfree.chart.editor, org.jfree.chart.encoders,
org.jfree.chart.entity, org.jfree.chart.event, org.jfree.chart.imagemap,
org.jfree.chart.labels, org.jfree.chart.needle, org.jfree.chart.plot,
org.jfree.chart.plot.dial, org.jfree.chart.renderer,
org.jfree.chart.renderer.category, org.jfree.chart.renderer.xy,
org.jfree.chart.resources, org.jfree.chart.servlet, org.jfree.chart.title,
org.jfree.chart.urls, org.jfree.chart.util, org.jfree.data,
org.jfree.data.category, org.jfree.data.contour, org.jfree.data.function,
org.jfree.data.gantt, org.jfree.data.general, org.jfree.data.io,
org.jfree.data.jdbc, org.jfree.data.resources, org.jfree.data.statistics,
org.jfree.data.time, org.jfree.data.time.ohlc, org.jfree.data.xml,
org.jfree.data.xy, org.jfree.date, org.jfree.experimental.chart.swt,
org.jfree.experimental.chart.swt.demo, org.jfree.experimental.chart.swt.editor,
org.jfree.experimental.swt, org.jfree.io, org.jfree.layout, org.jfree.resources,
org.jfree.text, org.jfree.threads, org.jfree.ui, org.jfree.ui.about,
org.jfree.ui.about.resources, org.jfree.ui.action, org.jfree.ui.tabbedui,
org.jfree.util
</name>
</value>
</values>
</header>
</headers>
</configuration>
<executions>
<execution>
<goals>
<goal>generate-osgi-manifest</goal>
</goals>
</execution>
</executions>
</plugin>

heprom
Posts: 91
Joined: Sat May 27, 2006 4:25 am
Location: Paris

Post by heprom » Sat Feb 16, 2008 9:40 am

Thanks,
I've no experience with OSGI so cannot really comment here except that we do not have an OSGI bundle of jfree.

Locked