This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 266174 - [CSS] Use Batik 1.7
Summary: [CSS] Use Batik 1.7
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.0   Edit
Hardware: All All
: P3 normal with 4 votes (vote)
Target Milestone: 4.4 M3   Edit
Assignee: Daniel Rolka CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 392038 (view as bug list)
Depends on: 189139
Blocks:
  Show dependency tree
 
Reported: 2009-02-25 12:55 EST by Kevin McGuire CLA
Modified: 2014-09-19 06:30 EDT (History)
12 users (show)

See Also:


Attachments
Benchmark test launcher (1.14 MB, multipart/x-zip)
2013-09-10 09:35 EDT, Daniel Rolka CLA
no flags Details
The SAC parsers benchmark tests report (69.03 KB, text/html)
2013-09-10 09:45 EDT, Daniel Rolka CLA
no flags Details
Benchmark test launcher adjusted for Mars (1.22 MB, application/zip)
2014-09-19 06:30 EDT, Daniel Rolka CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin McGuire CLA 2009-02-25 12:55:31 EST
Batik 1.7 is being committed to Orbit.  We should pick it up and move to it.  This may involve some work and there's potential for breakage since 1.6->1.7 appear to have slightly different shapes according to bug #189139.
Comment 1 Paul Webster CLA 2012-10-16 09:34:48 EDT
*** Bug 392038 has been marked as a duplicate of this bug. ***
Comment 2 Krzysztof Daniel CLA 2012-10-17 06:26:57 EDT
In Fedora we use batik-1.8-0.4.svn1230816 and it seems to work fine - no error reports.
Comment 3 Daniel Rolka CLA 2013-09-10 09:35:08 EDT
Created attachment 235352 [details]
Benchmark test launcher

Short instruction for application:
- unzip the archive file
- import projects to the workspace and build sources (at this moment the PDE build is supported only)
- using the 'org.eclipse.e4.ui.css.benchmark/org.eclipse.e4.ui.css.benchmark.product' configuration launch the RCP application
- Select parsers/test suites/tests that you would like to execute and press the 'Execute test suites' button
- When test results are ready, press the 'Show results' button to display the report. The report can be save to the file with the 'Save results to file' button

Daniel
Comment 4 Daniel Rolka CLA 2013-09-10 09:45:15 EDT
Created attachment 235353 [details]
The SAC parsers benchmark tests report

Paul, Bogdan,

I have made couple benchmark tests of the SAC parser using the launcher application(see attachments). I was using the following parsers in my tests:
 * org.w3c.flute.parser.Parser, 1.3.0,
 * org.apache.batik.css.parser.Parser, 1.6.0
 * org.apache.batik.css.parser.Parser, 1.7.0
 * com.steadystate.css.parser.SACParserCSS2, 0.9.5 (Unfortunately this version did not work and I've not checked other versions of this parser)

According to the test report the best results gives the parser org.apache.batik.css.parser.Parser 1.7.0 (see the report). The report has been created using the Windows 7 OS. However using the application it can be generated for the rest supported systems.

Basically we are quite loose coupled with parser since we use it via the SAC W3C API (bundle org.w3c.css.sac, 1.3.0). The rest of processing is done by the code in the org.eclipse.e4.ui.css.core bundle. 

Please let me know if you are going to check other parsers(I've not found anything interesting), perform other tests or we are going to use the Batik 1.7.0

If you have any other comments just let me know,
Daniel
Comment 5 Paul Webster CLA 2013-09-13 14:54:59 EDT
(In reply to Daniel Rolka from comment #4)
> Please let me know if you are going to check other parsers(I've not found
> anything interesting), perform other tests or we are going to use the Batik
> 1.7.0

Thanks you for your report and your analysis.  It looks like we should go ahead and use Batik 1.7.0

PW
Comment 6 Daniel Rolka CLA 2013-09-24 02:37:15 EDT
Gerrit review link: https://git.eclipse.org/r/#/c/16687/

Daniel
Comment 7 Paul Webster CLA 2013-09-26 16:41:51 EDT
I've released your change as http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=287abef5328cdd358799a17c8caa2fdfe4e90f19

Thanks Daniel.

We need to check tonight's nightly build to make sure it worked and the SDK contains the correct bundles.

PW
Comment 8 Daniel Rolka CLA 2013-09-27 04:04:06 EDT
Verified in the build: N20130926-2000

Paul,

I've checked the build and it looks good. All required Batik bundles are properly updated, the workbench, the RCP 3.x as well as the RCP 4.x applications work fine.
However I will monitor the Bugzilla in the case of any regression related to this change.

Daniel
Comment 9 Daniel Rolka CLA 2013-10-29 09:02:45 EDT
Verified in the build: I20131028-2000
Comment 10 Paul Webster CLA 2014-05-14 10:11:21 EDT
The CQ to use this: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=8287

PW
Comment 11 Daniel Rolka CLA 2014-09-19 06:30:50 EDT
Created attachment 247235 [details]
Benchmark test launcher adjusted for Mars