Bug 44573

Summary: Dependency graph omits several Jar files
Product: Batik - Now in Jira Reporter: Sebb <sebb>
Component: Web SiteAssignee: Batik Developer's Mailing list <batik-dev>
Status: ASSIGNED ---    
Severity: normal CC: helder.magalhaes
Priority: P2    
Version: 1.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
URL: http://xmlgraphics.apache.org/batik/install.html
Attachments: Jar dependency analysis report using JarAnalyzer 1.2

Description Sebb 2008-03-10 19:16:22 UTC
The jar file batik-codec.jar does not seem to appear anywhere on the dependency diagram http://xmlgraphics.apache.org/batik/jarDependImg.png on the page http://xmlgraphics.apache.org/batik/install.html
Comment 1 Cameron McCormack 2008-03-10 19:35:09 UTC
Indeed, that dependency graph is out of date and needs to be updated.  At the very least, the docs should be updated to point this out.
Comment 2 Helder Magalhães 2009-03-18 08:12:06 UTC
(In reply to comment #1)
> Indeed, that dependency graph is out of date and needs to be updated.

I read through the mailing lists [1] [2] and took a look at the Jar list and, as of revision 755596, here is a list of missing dependencies and a partial proposal:
 * batik-bridge.jar --> batik-anim.jar;
 * batik-anim.jar --> batik-svg-dom.jar;
 * batik-codec.jar --> ??? [1];
 * xml-apis.jar --> xalan-2.6.0.jar;
 * xalan-2.6.0.jar (stand-alone).

I updated the report title to reflect several Jars missing (previously only batik-codec.jar) so the several missing Jar files becomes a single action.

By the way: I guess this was already asked but... How was the graphic authored? By hand or was some tool in particular used to generate it?


> At the very least, the docs should be updated to point this out.

This was already done in revision 658507 (by Cameron). However, a documentation publish operation is needed to make this effective (commit occurred 2008-03-21, while the latest online documentation dates from 2008-01-09).


[1] http://www.nabble.com/Jar-dependency-graph-td17002989.html#a17002989
[2] http://www.nabble.com/minimal-classes-needed-to-use-JSVGCanvas-in-applet-td18477825.html
Comment 3 Cameron McCormack 2009-03-18 18:59:48 UTC
(In reply to comment #2)
> I read through the mailing lists [1] [2] and took a look at the Jar list and,
> as of revision 755596, here is a list of missing dependencies and a partial
> proposal:
>  * batik-bridge.jar --> batik-anim.jar;
>  * batik-anim.jar --> batik-svg-dom.jar;
>  * batik-codec.jar --> ??? [1];
>  * xml-apis.jar --> xalan-2.6.0.jar;
>  * xalan-2.6.0.jar (stand-alone).

Thanks!  Both batik-svggen.jar and batik-transcoder.jar depend on batik-codec.jar implicitly through the SPI.  batik-codec.jar doesn't depend on anything, I believe.

> I updated the report title to reflect several Jars missing (previously only
> batik-codec.jar) so the several missing Jar files becomes a single action.
> 
> By the way: I guess this was already asked but... How was the graphic authored?
> By hand or was some tool in particular used to generate it?

I don't know who generated it, or whether it was generated by hand or with a tool.  In case you haven't seen it, the source is here:

  http://svn.apache.org/repos/asf/xmlgraphics/batik/trunk/documentation-sources/resources/images/jarDependImg.source.svg

It might be easier to just create a new one.

> > At the very least, the docs should be updated to point this out.
> 
> This was already done in revision 658507 (by Cameron). However, a documentation
> publish operation is needed to make this effective (commit occurred 2008-03-21,
> while the latest online documentation dates from 2008-01-09).

I just did a publish now; it should take no longer than an hour to appear on xmlgraphics.apache.org.
Comment 4 Helder Magalhães 2009-04-02 09:51:11 UTC
(In reply to comment #3)

(me)
> > How was the graphic authored?

(Cameron)
> I don't know who generated it, or whether it was generated by hand or with a
> tool.  In case you haven't seen it, the source is here:

Seems that Thomas generated it (in revision 201133). Do you recall if you used some tool for the job or if it was hand authored, Thomas?
Comment 5 Helder Magalhães 2009-04-15 21:21:58 UTC
(In reply to comment #4)
> Seems that Thomas generated it (in revision 201133). Do you recall if you used
> some tool for the job or if it was hand authored, Thomas?

As no feedback was received, I propose using Inkscape. It may be necessary creating an additional file to hold a plain SVG export from Inkscape, as I'm not sure if the rasterizer will be behave well with all the extra (and/or invalid?) attributes added by Inkscape to support editing. A few tests are required to, if possible, avoid that extra step.
Comment 6 Helder Magalhães 2009-05-16 05:40:24 UTC
Created attachment 23667 [details]
Jar dependency analysis report using JarAnalyzer 1.2

(In reply to comment #5)
> As no feedback was received, I propose using Inkscape. It may be necessary
> creating an additional file to hold a plain SVG export from Inkscape, as I'm
> not sure if the rasterizer will be behave well with all the extra (and/or
> invalid?) attributes added by Inkscape to support editing. A few tests are
> required to, if possible, avoid that extra step.

Still haven't got any spare cycles to get my hand onto this... :-|  Is anyone interested into picking this up? ;-)

Today I bumped into JarAnalyzer [1], a dependency analyzer, and ran version 1.2 against the trunk version (revision 774981) of Batik Jars. The attachment shows the raw result, although I confess I didn't spend the desired amount of time comparing the result with the previous assumptions: I intend to do this whenever I get the chance to get back to this and, in the meantime, this may be useful for anyone taking a look at this. :-)

[1] http://www.kirkk.com/main/Main/JarAnalyzer