Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304321 - dev-java/freehep-graphicsio-* include ExportFileType in each jar
Summary: dev-java/freehep-graphicsio-* include ExportFileType in each jar
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 304323
  Show dependency tree
 
Reported: 2010-02-10 14:09 UTC by Oliver Borm
Modified: 2016-05-25 22:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Borm 2010-02-10 14:09:44 UTC
Is it possible to include org.freehep.util.export.ExportFileType in each jar of the dev-java/freehep-graphicsio-* into:

META-INF/services/org.freehep.util.export.ExportFileType

See http://java.freehep.org/vectorgraphics/FAQ.html#merge-jars for further details, why this is necessary:


The vectorgraphics formats are distributed as separate jar files. I merged the jar files into one, but now I only see a few (or no) formats appear the ExportDialog option box. Where did the other formats go?

    Every format registers itself as an ExportFileType with a lookup service, so that a program can find ExportFileTypes for a particular format. The registration is done by scanning each of the jar files on the classpath for the file META-INF/services/org.freehep.util.export.ExportFileType. This file contains the names of all the ExportFileTypes it should register, normally only one per jar file, but sometimes more, in the case of PS and EPS for instance.

    If you merge all the jar files into one, you should also make a META-INF/services/org.freehep.util.export.ExportFileType file with ALL the formats in it.




Reproducible: Always
Comment 1 James Le Cuirot gentoo-dev 2016-05-25 22:03:02 UTC
I don't quite understand what you're asking. Were we including the file in each jar before? I don't know but we are now so I'll mark this fixed. If you want to merge everything into one jar then it's your job to fix this file, not ours.