#201 osgi bundle for jfreechart

open
nobody
None
5
2014-08-18
2008-02-13
Anonymous
No

There is no osgi bundle created form Jfreechart that could be used in eclipse RCP application. with maven2 pom it will be easy to create osgi bundle.

<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>

Addd this on plugin section of the pom
<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>

If you are using maven 1 lets us know we might have to create osgi bundle on that though.

Discussion

  • Remy Chi Jian Suen

    Any chance of this getting looked at in the future? We too would also like to consume JFreeChart in our RCP application.

     
  • David Gilbert

    David Gilbert - 2009-05-26
    • labels: 104897 -->
    • milestone: 547194 -->
     
  • David Gilbert

    David Gilbert - 2009-05-26

    Transferring this to patches. I don't use Maven at all (nor Eclipse RCP), so I don't know how to merge this with the pom.xml that is already included with JFreeChart.

     

Log in to post a comment.