From 5c29e6fe97fb1a126669f9a7c3c293c3cf1c1f8e096c25355b0687a9e7e59d6b Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sun, 24 Sep 2023 20:38:25 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/maven-doxia?expand=0&rev=28 --- 0002-Commons-configuration2.patch | 72 ------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 0002-Commons-configuration2.patch diff --git a/0002-Commons-configuration2.patch b/0002-Commons-configuration2.patch deleted file mode 100644 index 630b365..0000000 --- a/0002-Commons-configuration2.patch +++ /dev/null @@ -1,72 +0,0 @@ ---- doxia-1.12.0/doxia-modules/doxia-module-fo/pom.xml.orig 2023-01-09 21:09:18.000000000 -0700 -+++ doxia-1.12.0/doxia-modules/doxia-module-fo/pom.xml 2023-06-12 15:58:35.171254714 -0600 -@@ -71,9 +71,9 @@ under the License. - - - -- commons-configuration -- commons-configuration -- 1.10 -+ org.apache.commons -+ commons-configuration2 -+ 2.9.0 - - - commons-collections ---- doxia-1.12.0/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoConfiguration.java.orig 2023-01-09 21:09:18.000000000 -0700 -+++ doxia-1.12.0/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoConfiguration.java 2023-06-12 17:00:19.630450286 -0600 -@@ -20,14 +20,16 @@ package org.apache.maven.doxia.module.fo - */ - - import java.io.File; -+import java.io.FileReader; - import java.io.IOException; - import java.util.List; - - import javax.swing.text.MutableAttributeSet; - import javax.swing.text.SimpleAttributeSet; - --import org.apache.commons.configuration.ConfigurationException; --import org.apache.commons.configuration.XMLConfiguration; -+import org.apache.commons.configuration2.XMLConfiguration; -+import org.apache.commons.configuration2.ex.ConfigurationException; -+import org.apache.commons.configuration2.io.FileLocatorUtils; - import org.apache.maven.doxia.sink.impl.SinkUtils; - import org.codehaus.plexus.util.ReaderFactory; - -@@ -55,9 +57,6 @@ public class FoConfiguration - { - this.config = new XMLConfiguration(); - -- // necessary because some attributes contain commas: -- config.setDelimiterParsingDisabled( true ); -- - loadDefaultConfig(); - } - -@@ -75,10 +74,11 @@ public class FoConfiguration - throws IOException - { - config.clear(); -+ config.initFileLocator( FileLocatorUtils.fileLocator().basePath( configFile.getParent() ).fileName( configFile.getName() ).create() ); - - try - { -- config.load( configFile ); -+ config.read( new FileReader(configFile) ); - } - catch ( ConfigurationException cex ) - { -@@ -182,9 +182,11 @@ public class FoConfiguration - /** Load the default fo configuration file. */ - private void loadDefaultConfig() - { -+ config.initFileLocator( FileLocatorUtils.fileLocator().sourceURL( getClass().getResource( "/fo-styles.xslt" ) ).create() ); -+ - try - { -- config.load( ReaderFactory.newXmlReader( getClass().getResourceAsStream( "/fo-styles.xslt" ) ) ); -+ config.read( ReaderFactory.newXmlReader( getClass().getResourceAsStream( "/fo-styles.xslt" ) ) ); - } - catch ( ConfigurationException | IOException cex ) - {