Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#391 Generate OSGi metada for jfreechart.

open
nobody
General (246)
5
2012-11-27
2012-10-25
Jerboaa
No

jfreechart does not provide basic OSGi metadata and can hence not be used in an OSGi context. I've attached a patch for current trunk which adds ant tasks to build.xml which create such OSGi-ified jars:

$ cd path/to/trunk
$ patch < generate_osgi_metadata.patch
$ ant make-jfreechart-bundle

That produces a jar in the base dir with an -osgi. suffix. This file can be used in an OSGi context as well as it provides basic export-package statements.

I've also created a pull request[1] on github for jfreechart-fse which does basically the same thing using maven.

Please consider including this patch for your next release and consider shipping jfreechart as bundle instead of jar. Let me know if you have questions.

[1] https://github.com/jfree/jfreechart-fse/pull/2

Discussion

  • Jerboaa
    Jerboaa
    2012-10-25

    build.xml patch including Aqute-bnd wrapping configs