Resolve a clash between two implementations of org.w3c.dom 72/72/2
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Thu, 15 Sep 2016 05:55:13 +0000 (08:55 +0300)
committerHannu Niemistö <hannu.niemisto@semantum.fi>
Thu, 15 Sep 2016 06:21:57 +0000 (09:21 +0300)
The bundle org.apache.batik contained its own version of
org.w3c.dom and other basic xml packages. This change
adds javax.xml as a required bundle for org.apache.batik
and removes corresponding import package declarations.
Import package declarations didn't work because of
split packages.

Change-Id: Id49851c63e37ebe12cb9dbab557dc0b3a32b7f58

bundles/org.apache.batik/.classpath
bundles/org.apache.batik/META-INF/MANIFEST.MF
bundles/org.apache.batik/build.properties
bundles/org.apache.batik/src/.keep [new file with mode: 0644]
bundles/org.apache.batik/src/org/apache/batik/Activator.java [deleted file]

index 93684ddba4b2929242a01530bc0ef2d1411126fe..0f23270eff9b84582a281b0c770a009827e1e581 100644 (file)
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <classpath>\r
+       <classpathentry exported="true" kind="lib" path="lib/xml-apis-ext-1.3.04.jar"/>\r
        <classpathentry exported="true" kind="lib" path="lib/fop-transcoder-allinone-svn-trunk.jar"/>\r
        <classpathentry exported="true" kind="lib" path="lib/batik-codec-1.8.jar"/>\r
        <classpathentry exported="true" kind="lib" path="lib/batik-extension-1.8.jar"/>\r
index b8a5093e80cd8afc8639aabfd6fcd0a24a7353b9..22d86a06df08db8ae7248e550a6484b1171ea151 100644 (file)
@@ -3,11 +3,7 @@ Bundle-ManifestVersion: 2
 Bundle-Name: Batik
 Bundle-SymbolicName: org.apache.batik;singleton:=true
 Bundle-Version: 1.8.0.qualifier
-Bundle-Activator: org.apache.batik.Activator
-Require-Bundle: org.eclipse.ui,\r
- org.eclipse.core.runtime
 Bundle-RequiredExecutionEnvironment: JavaSE-1.8
-Bundle-ActivationPolicy: lazy
 Export-Package: java_cup.runtime,
  org.apache.avalon.framework,
  org.apache.avalon.framework.activity,
@@ -98,12 +94,17 @@ Export-Package: java_cup.runtime,
  org.apache.fop,
  org.apache.fop.accessibility,
  org.apache.fop.apps,
+ org.apache.fop.apps.io,
+ org.apache.fop.complexscripts.bidi,
  org.apache.fop.complexscripts.fonts,
+ org.apache.fop.complexscripts.util,
+ org.apache.fop.events,
  org.apache.fop.fo,
  org.apache.fop.fonts,
  org.apache.fop.fonts.apps,
  org.apache.fop.fonts.autodetect,
  org.apache.fop.fonts.base14,
+ org.apache.fop.fonts.cff,
  org.apache.fop.fonts.substitute,
  org.apache.fop.fonts.truetype,
  org.apache.fop.fonts.type1,
@@ -111,13 +112,18 @@ Export-Package: java_cup.runtime,
  org.apache.fop.pdf,
  org.apache.fop.pdf.xref,
  org.apache.fop.render,
+ org.apache.fop.render.gradient,
  org.apache.fop.render.intermediate,
  org.apache.fop.render.pdf,
  org.apache.fop.render.pdf.extensions,
  org.apache.fop.render.ps,
  org.apache.fop.render.ps.extensions,
  org.apache.fop.render.ps.fonts,
+ org.apache.fop.render.ps.svg,
  org.apache.fop.svg,
+ org.apache.fop.svg.font,
+ org.apache.fop.svg.text,
+ org.apache.fop.traits,
  org.apache.fop.util,
  org.apache.html.dom,
  org.apache.regexp,
@@ -245,7 +251,15 @@ Export-Package: java_cup.runtime,
  org.mozilla.javascript.tools.jsc,
  org.mozilla.javascript.tools.shell,
  org.mozilla.javascript.xml,
- org.mozilla.javascript.xmlimpl
+ org.mozilla.javascript.xmlimpl,
+ org.w3c.css.sac,
+ org.w3c.css.sac.helpers,
+ org.w3c.dom,
+ org.w3c.dom.events,
+ org.w3c.dom.html,
+ org.w3c.dom.ls,
+ org.w3c.dom.smil,
+ org.w3c.dom.svg
 Bundle-ClassPath: lib/batik-awt-util-1.8.jar,
  lib/batik-dom-1.8.jar,
  lib/batik-ext-1.8.jar,
@@ -269,33 +283,6 @@ Bundle-ClassPath: lib/batik-awt-util-1.8.jar,
  lib/js.jar,
  lib/xalan-2.7.0.jar,
  lib/xerces_2_5_0.jar,
- lib/fop-transcoder-allinone-svn-trunk.jar
-Import-Package: javax.xml,
- javax.xml.datatype,
- javax.xml.namespace,
- javax.xml.parsers,
- javax.xml.transform,
- javax.xml.transform.dom,
- javax.xml.transform.sax,
- javax.xml.transform.stream,
- javax.xml.validation,
- javax.xml.xpath,
- org.w3c.css.sac,
- org.w3c.css.sac.helpers,
- org.w3c.dom,
- org.w3c.dom.bootstrap,
- org.w3c.dom.css,
- org.w3c.dom.events,
- org.w3c.dom.html,
- org.w3c.dom.ls,
- org.w3c.dom.ranges,
- org.w3c.dom.smil,
- org.w3c.dom.stylesheets,
- org.w3c.dom.svg,
- org.w3c.dom.traversal,
- org.w3c.dom.views,
- org.w3c.dom.xpath,
- org.xml.sax,
- org.xml.sax.ext,
- org.xml.sax.helpers,
- org.apache.xmlcommons
+ lib/fop-transcoder-allinone-svn-trunk.jar,
+ lib/xml-apis-ext-1.3.04.jar
+Require-Bundle: javax.xml;bundle-version="1.3.4"
index 4dce108e623127b5960ce287964027b41b0d22f6..d435895c2e79560cc7531b5deb83e061e09bb526 100644 (file)
@@ -25,4 +25,5 @@ bin.includes = META-INF/,\
                lib/js.jar,\\r
                lib/xalan-2.7.0.jar,\\r
                lib/xerces_2_5_0.jar,\\r
-               lib/fop-transcoder-allinone-svn-trunk.jar\r
+               lib/fop-transcoder-allinone-svn-trunk.jar,\\r
+               lib/xml-apis-ext-1.3.04.jar\r
diff --git a/bundles/org.apache.batik/src/.keep b/bundles/org.apache.batik/src/.keep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/bundles/org.apache.batik/src/org/apache/batik/Activator.java b/bundles/org.apache.batik/src/org/apache/batik/Activator.java
deleted file mode 100644 (file)
index 0023b84..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-package org.apache.batik;\r
-\r
-import org.eclipse.ui.plugin.AbstractUIPlugin;\r
-import org.osgi.framework.BundleContext;\r
-\r
-/**\r
- * The activator class controls the plug-in life cycle\r
- */\r
-public class Activator extends AbstractUIPlugin {\r
-\r
-       // The plug-in ID\r
-       public static final String PLUGIN_ID = "org.apache.batik"; //$NON-NLS-1$\r
-\r
-       // The shared instance\r
-       private static Activator plugin;\r
-       \r
-       /**\r
-        * The constructor\r
-        */\r
-       public Activator() {\r
-       }\r
-\r
-       /*\r
-        * (non-Javadoc)\r
-        * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)\r
-        */\r
-       public void start(BundleContext context) throws Exception {\r
-               super.start(context);\r
-               plugin = this;\r
-       }\r
-\r
-       /*\r
-        * (non-Javadoc)\r
-        * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)\r
-        */\r
-       public void stop(BundleContext context) throws Exception {\r
-               plugin = null;\r
-               super.stop(context);\r
-       }\r
-\r
-       /**\r
-        * Returns the shared instance\r
-        *\r
-        * @return the shared instance\r
-        */\r
-       public static Activator getDefault() {\r
-               return plugin;\r
-       }\r
-\r
-}\r