public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mikolaj Izdebski <mizdebsk@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/maven-doxia] epel10: Organize patches
Date: Mon, 19 Oct 2026 14:55:27 GMT [thread overview]
Message-ID: <179242172712.1.2925055505534416895.rpms-maven-doxia-d9f0e2586751@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/maven-doxia
Branch : epel10
Commit : d9f0e25867512161c5ccf021d7766a586ee957d3
Author : Mikolaj Izdebski <mizdebsk@redhat.com>
Date : 2015-03-16T09:45:23+01:00
Stats : +454/-454 in 9 file(s)
URL : https://src.fedoraproject.org/rpms/maven-doxia/c/d9f0e25867512161c5ccf021d7766a586ee957d3?branch=epel10
Log:
Organize patches
---
diff --git a/0001-Disable-tests-which-rely-on-ordering-in-set.patch b/0001-Disable-tests-which-rely-on-ordering-in-set.patch
deleted file mode 100644
index f4b9809..0000000
--- a/0001-Disable-tests-which-rely-on-ordering-in-set.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 821b58812dc6d30d91a89c90266904a83daaf117 Mon Sep 17 00:00:00 2001
-From: Michal Srb <msrb@redhat.com>
-Date: Wed, 26 Mar 2014 09:58:20 +0100
-Subject: [PATCH 4/4] Disable tests which rely on ordering in set
-
-These tests fail with Java 8
----
- .../src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java | 4 ++++
- .../java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java | 2 ++
- 2 files changed, 6 insertions(+)
-
-diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
-index 5e817d6..7439cd3 100644
---- a/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
-+++ b/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
-@@ -419,6 +419,7 @@ public abstract class AbstractSinkTest
- * invoked on the current sink, produces the same result as
- * {@link #getFigureBlock getFigureBlock}( source, caption ).
- */
-+ /*
- public void testFigure() throws Exception
- {
- String source = "figure.jpg";
-@@ -469,6 +470,7 @@ public abstract class AbstractSinkTest
- assertEquals( "Wrong figure!", expected, actual );
- }
- }
-+ */
-
- /**
- * Checks that the sequence <code>[table(),
-@@ -478,6 +480,7 @@ public abstract class AbstractSinkTest
- * invoked on the current sink, produces the same result as
- * {@link #getTableBlock getTableBlock}( cell, caption ).
- */
-+ /*
- public void testTable() throws Exception
- {
- String cell = "cell";
-@@ -511,6 +514,7 @@ public abstract class AbstractSinkTest
- assertEquals( "Wrong table!", expected, actual );
- }
- }
-+ */
-
- /**
- * Checks that the sequence <code>[paragraph(), text( text ),
-diff --git a/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java b/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java
-index 847c341..729357b 100644
---- a/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java
-+++ b/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java
-@@ -164,6 +164,7 @@ public class FoAggregateSinkTest
- /**
- * Test of figureGraphics method, of class FoAggregateSink.
- */
-+ /*
- public void testFigureGraphics() throws Exception
- {
- try
-@@ -187,6 +188,7 @@ public class FoAggregateSinkTest
- Diff diff = XMLUnit.compareXML( wrapXml( expected ), wrapXml( actual ) );
- assertTrue( "Wrong figure!", diff.identical() );
- }
-+ */
-
- /**
- * Test of anchor method, of class FoAggregateSink.
---
-1.9.3
-
diff --git a/0001-Fix-itext-dependency.patch b/0001-Fix-itext-dependency.patch
new file mode 100644
index 0000000..b0a0b99
--- /dev/null
+++ b/0001-Fix-itext-dependency.patch
@@ -0,0 +1,245 @@
+From a8a5e181c76fee4f654faae63322e1e5de932192 Mon Sep 17 00:00:00 2001
+From: Stanislav Ochotnicky <sochotnicky@redhat.com>
+Date: Mon, 29 Apr 2013 11:37:12 +0200
+Subject: [PATCH 1/4] Fix itext dependency
+
+---
+ doxia-modules/doxia-module-itext/pom.xml | 2 +-
+ .../apache/maven/doxia/module/itext/ITextFont.java | 16 ++---
+ .../apache/maven/doxia/module/itext/ITextSink.java | 6 +-
+ .../apache/maven/doxia/module/itext/ITextUtil.java | 69 +---------------------
+ .../doxia/module/itext/ITextSinkTestCase.java | 22 -------
+ 5 files changed, 13 insertions(+), 102 deletions(-)
+
+diff --git a/doxia-modules/doxia-module-itext/pom.xml b/doxia-modules/doxia-module-itext/pom.xml
+index 86acc37..9cc34ff 100644
+--- a/doxia-modules/doxia-module-itext/pom.xml
++++ b/doxia-modules/doxia-module-itext/pom.xml
+@@ -58,7 +58,7 @@ under the License.
+ <dependency>
+ <groupId>com.lowagie</groupId>
+ <artifactId>itext</artifactId>
+- <version>1.4</version>
++ <version>2.1.7</version>
+ </dependency>
+ </dependencies>
+
+diff --git a/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextFont.java b/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextFont.java
+index 2cc8ef1..5dfc882 100644
+--- a/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextFont.java
++++ b/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextFont.java
+@@ -24,7 +24,7 @@ import java.awt.Color;
+ import com.lowagie.text.ExceptionConverter;
+ import com.lowagie.text.Font;
+ import com.lowagie.text.FontFactory;
+-import com.lowagie.text.markup.MarkupTags;
++import com.lowagie.text.html.Markup;
+ import com.lowagie.text.pdf.BaseFont;
+
+ /**
+@@ -38,16 +38,16 @@ import com.lowagie.text.pdf.BaseFont;
+ public class ITextFont
+ {
+ /** A normal font style */
+- public static final String NORMAL = MarkupTags.CSS_VALUE_NORMAL;
++ public static final String NORMAL = Markup.CSS_VALUE_NORMAL;
+
+ /** A bold font style */
+- public static final String BOLD = MarkupTags.CSS_VALUE_BOLD;
++ public static final String BOLD = Markup.CSS_VALUE_BOLD;
+
+ /** A italic font style */
+- public static final String ITALIC = MarkupTags.CSS_VALUE_ITALIC;
++ public static final String ITALIC = Markup.CSS_VALUE_ITALIC;
+
+ /** An underline font style */
+- public static final String UNDERLINE = MarkupTags.CSS_VALUE_UNDERLINE;
++ public static final String UNDERLINE = Markup.CSS_VALUE_UNDERLINE;
+
+ /** A default font name */
+ public static final String DEFAULT_FONT_NAME = FontFactory.HELVETICA;
+@@ -262,7 +262,7 @@ public class ITextFont
+ {
+ Font font = getCurrentFont();
+
+- return String.valueOf( font.color().getBlue() );
++ return String.valueOf( font.getColor().getBlue() );
+ }
+
+ /**
+@@ -274,7 +274,7 @@ public class ITextFont
+ {
+ Font font = getCurrentFont();
+
+- return String.valueOf( font.color().getGreen() );
++ return String.valueOf( font.getColor().getGreen() );
+ }
+
+ /**
+@@ -286,7 +286,7 @@ public class ITextFont
+ {
+ Font font = getCurrentFont();
+
+- return String.valueOf( font.color().getRed() );
++ return String.valueOf( font.getColor().getRed() );
+ }
+
+ /**
+diff --git a/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java b/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java
+index 7c1da55..9561f8e 100644
+--- a/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java
++++ b/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java
+@@ -1231,9 +1231,9 @@ public class ITextSink
+ try
+ {
+ Image image = Image.getInstance( new URL( urlName ) );
+- image.scaleToFit( ITextUtil.getDefaultPageSize().width() / 2, ITextUtil.getDefaultPageSize().height() / 2 );
+- width = image.plainWidth();
+- height = image.plainHeight();
++ image.scaleToFit( ITextUtil.getDefaultPageSize().getWidth() / 2, ITextUtil.getDefaultPageSize().getHeight() / 2 );
++ width = image.getPlainWidth();
++ height = image.getPlainHeight();
+ }
+ catch ( BadElementException e )
+ {
+diff --git a/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextUtil.java b/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextUtil.java
+index 4363413..141646c 100644
+--- a/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextUtil.java
++++ b/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextUtil.java
+@@ -22,9 +22,6 @@ package org.apache.maven.doxia.module.itext;
+ import com.lowagie.text.DocumentException;
+ import com.lowagie.text.PageSize;
+ import com.lowagie.text.Rectangle;
+-import com.lowagie.text.xml.XmlToHtml;
+-import com.lowagie.text.xml.XmlToPdf;
+-import com.lowagie.text.xml.XmlToRtf;
+
+ import java.io.InputStream;
+ import java.io.OutputStream;
+@@ -77,7 +74,7 @@ public class ITextUtil
+ if ( currentField.getType().equals( Rectangle.class ) )
+ {
+ Rectangle fPageSize = (Rectangle) currentField.get( null );
+- if ( ( rect.width() == fPageSize.width() ) && ( rect.height() == fPageSize.height() ) )
++ if ( ( rect.getWidth() == fPageSize.getWidth() ) && ( rect.getHeight() == fPageSize.getHeight() ) )
+ {
+ return currentField.getName();
+ }
+@@ -114,68 +111,4 @@ public class ITextUtil
+
+ return false;
+ }
+-
+- /**
+- * Parse an iText XML from the specified <CODE>InputStream</CODE>, writing an Pdf document
+- * specified <CODE>OutputStream</CODE>.
+- *
+- * @param is the <CODE>InputStream</CODE> from which the XML is read.
+- * @param os the <CODE>OutputStream</CODE> to which the result as Pdf is written.
+- * @see com.lowagie.text.xml.XmlToPdf
+- */
+- public static void writePdf( InputStream is, OutputStream os )
+- {
+- try
+- {
+- XmlToPdf x = new XmlToPdf();
+-
+- x.parse( is, os );
+- }
+- catch ( DocumentException e )
+- {
+- throw new RuntimeException( "DocumentException : " + e.getMessage(), e );
+- }
+- }
+-
+- /**
+- * Parse an iText XML from the specified <CODE>InputStream</CODE>, writing an rtf document
+- * specified <CODE>OutputStream</CODE>.
+- *
+- * @param is the <CODE>InputStream</CODE> from which the XML is read.
+- * @param os the <CODE>OutputStream</CODE> to which the result as RTF is written.
+- * @see com.lowagie.text.xml.XmlToRtf
+- */
+- public static void writeRtf( InputStream is, OutputStream os )
+- {
+- try
+- {
+- XmlToRtf x = new XmlToRtf();
+- x.parse( is, os );
+- }
+- catch ( DocumentException e )
+- {
+- throw new RuntimeException( "DocumentException : " + e.getMessage(), e );
+- }
+- }
+-
+- /**
+- * Parse an iText XML from the specified <CODE>InputStream</CODE>, writing an html document
+- * specified <CODE>OutputStream</CODE>.
+- *
+- * @param is the <CODE>InputStream</CODE> from which the XML is read.
+- * @param os the <CODE>OutputStream</CODE> to which the result as Html is written.
+- * @see com.lowagie.text.xml.XmlToHtml
+- */
+- public static void writeHtml( InputStream is, OutputStream os )
+- {
+- try
+- {
+- XmlToHtml x = new XmlToHtml();
+- x.parse( is, os );
+- }
+- catch ( DocumentException e )
+- {
+- throw new RuntimeException( "DocumentException : " + e.getMessage(), e );
+- }
+- }
+ }
+diff --git a/doxia-modules/doxia-module-itext/src/test/java/org/apache/maven/doxia/module/itext/ITextSinkTestCase.java b/doxia-modules/doxia-module-itext/src/test/java/org/apache/maven/doxia/module/itext/ITextSinkTestCase.java
+index 3e24d07..50d0d70 100644
+--- a/doxia-modules/doxia-module-itext/src/test/java/org/apache/maven/doxia/module/itext/ITextSinkTestCase.java
++++ b/doxia-modules/doxia-module-itext/src/test/java/org/apache/maven/doxia/module/itext/ITextSinkTestCase.java
+@@ -81,20 +81,6 @@ public class ITextSinkTestCase
+ }
+
+ /**
+- * Test PDF generation
+- *
+- * @throws Exception
+- */
+- public void testGeneratingPDFFromITextXml()
+- throws Exception
+- {
+- File f = new File( getBasedir(), "src/test/resources/itext/itext.xml" );
+-
+- ITextUtil.writePdf( new FileInputStream( f ),
+- new FileOutputStream( getGeneratedFile( "test_itext", "pdf" ) ) );
+- }
+-
+- /**
+ * Generate a pdf and a rtf from the standart test model.
+ *
+ * @throws Exception if any
+@@ -107,11 +93,6 @@ public class ITextSinkTestCase
+ SinkTestDocument.generate( sink );
+
+ sink.close();
+-
+- ITextUtil.writePdf( new FileInputStream( getGeneratedFile( "test_model", "xml" ) ),
+- new FileOutputStream( getGeneratedFile( "test_model", "pdf" ) ) );
+- ITextUtil.writeRtf( new FileInputStream( getGeneratedFile( "test_model", "xml" ) ),
+- new FileOutputStream( getGeneratedFile( "test_model", "rtf" ) ) );
+ }
+
+ /**
+@@ -148,8 +129,5 @@ public class ITextSinkTestCase
+
+ sink.flush();
+ sink.close();
+-
+- ITextUtil.writePdf( new FileInputStream( getGeneratedFile( "empty_anchor", "xml" ) ),
+- new FileOutputStream( getGeneratedFile( "empty_anchor", "pdf" ) ) );
+ }
+ }
+--
+2.1.0
+
diff --git a/0001-Update-to-Commons-Collections-1.10.patch b/0001-Update-to-Commons-Collections-1.10.patch
deleted file mode 100644
index 76e7b76..0000000
--- a/0001-Update-to-Commons-Collections-1.10.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 786df11d7033f89fd2256e2c45900bd822c36abc Mon Sep 17 00:00:00 2001
-From: Mikolaj Izdebski <mizdebsk@redhat.com>
-Date: Thu, 7 Nov 2013 08:24:01 +0100
-Subject: [PATCH 3/4] Update to Commons Collections 1.10
-
----
- doxia-modules/doxia-module-fo/pom.xml | 9 ++++++++-
- 1 file changed, 8 insertions(+), 1 deletion(-)
-
-diff --git a/doxia-modules/doxia-module-fo/pom.xml b/doxia-modules/doxia-module-fo/pom.xml
-index 6d54eba..0d89e4f 100644
---- a/doxia-modules/doxia-module-fo/pom.xml
-+++ b/doxia-modules/doxia-module-fo/pom.xml
-@@ -73,7 +73,14 @@ under the License.
- <dependency>
- <groupId>commons-configuration</groupId>
- <artifactId>commons-configuration</artifactId>
-- <version>1.6</version>
-+ <version>1.10</version>
-+ </dependency>
-+ <dependency>
-+ <groupId>commons-collections</groupId>
-+ <artifactId>commons-collections</artifactId>
-+ <version>3.2.1</version>
-+ <!-- runtime dep for commons-configuration -->
-+ <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.xmlgraphics</groupId>
---
-1.9.3
-
diff --git a/0001-Update-to-Plexus-Container-1.5.5.patch b/0001-Update-to-Plexus-Container-1.5.5.patch
deleted file mode 100644
index b121811..0000000
--- a/0001-Update-to-Plexus-Container-1.5.5.patch
+++ /dev/null
@@ -1,102 +0,0 @@
-From 1ebea913dce45bdebd5f2fbf765a8091f7a88907 Mon Sep 17 00:00:00 2001
-From: Mikolaj Izdebski <mizdebsk@redhat.com>
-Date: Wed, 6 Nov 2013 12:46:26 +0100
-Subject: [PATCH 2/4] Update to Plexus Container 1.5.5
-
----
- .../java/org/apache/maven/doxia/module/AbstractIdentityTest.java | 3 ++-
- .../test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java | 3 ++-
- .../test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java | 3 ++-
- pom.xml | 7 +------
- 4 files changed, 7 insertions(+), 9 deletions(-)
-
-diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java
-index 100add3..8c78956 100644
---- a/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java
-+++ b/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java
-@@ -33,6 +33,7 @@ import org.apache.maven.doxia.parser.Parser;
- import org.apache.maven.doxia.sink.Sink;
- import org.apache.maven.doxia.sink.SinkTestDocument;
- import org.apache.maven.doxia.sink.TextSink;
-+import org.codehaus.plexus.DefaultPlexusContainer;
- import org.codehaus.plexus.util.IOUtil;
-
- /**
-@@ -107,7 +108,7 @@ public abstract class AbstractIdentityTest
- writer = new StringWriter();
- sink = new TextSink( writer );
- Parser parser = createParser();
-- parser.enableLogging( new PlexusLoggerWrapper( getContainer().getLogger() ) );
-+ parser.enableLogging( new PlexusLoggerWrapper( ( ( DefaultPlexusContainer )getContainer() ).getLogger() ) );
- parser.parse( reader, sink );
- String actual = writer.toString();
-
-diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
-index 93d0f01..5e817d6 100644
---- a/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
-+++ b/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
-@@ -25,6 +25,7 @@ import java.io.Writer;
-
- import org.apache.maven.doxia.AbstractModuleTest;
- import org.apache.maven.doxia.logging.PlexusLoggerWrapper;
-+import org.codehaus.plexus.DefaultPlexusContainer;
- import org.codehaus.plexus.util.IOUtil;
- import org.custommonkey.xmlunit.Diff;
- import org.custommonkey.xmlunit.XMLUnit;
-@@ -56,7 +57,7 @@ public abstract class AbstractSinkTest
-
- testWriter.reset();
- sink = createSink( testWriter );
-- sink.enableLogging( new PlexusLoggerWrapper( getContainer().getLogger() ) );
-+ sink.enableLogging( new PlexusLoggerWrapper( ( ( DefaultPlexusContainer )getContainer() ).getLogger() ) );
- }
-
- /**
-diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java b/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java
-index 5f9108e..88db2b4 100644
---- a/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java
-+++ b/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java
-@@ -31,6 +31,7 @@ import junit.framework.AssertionFailedError;
-
- import org.apache.maven.doxia.parser.Parser;
-
-+import org.codehaus.plexus.DefaultPlexusContainer;
- import org.codehaus.plexus.PlexusTestCase;
- import org.codehaus.plexus.logging.Logger;
-
-@@ -96,7 +97,7 @@ public abstract class AbstractXmlValidator
- public void testValidateFiles()
- throws Exception
- {
-- final Logger logger = getContainer().getLoggerManager().getLoggerForComponent( Parser.ROLE );
-+ final Logger logger = ( ( DefaultPlexusContainer )getContainer() ).getLoggerManager().getLoggerForComponent( Parser.ROLE );
-
- for ( Iterator<Map.Entry<String, String>> it = getTestDocuments().entrySet().iterator(); it.hasNext(); )
- {
-diff --git a/pom.xml b/pom.xml
-index 4d42f3e..a0dbb9c 100644
---- a/pom.xml
-+++ b/pom.xml
-@@ -287,18 +287,13 @@ under the License.
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-container-default</artifactId>
-- <version>1.0-alpha-30</version>
-+ <version>1.5.5</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-utils</artifactId>
- <version>3.0.15</version>
- </dependency>
-- <dependency><!-- remove when upgrading parent to version 22 -->
-- <groupId>org.codehaus.plexus</groupId>
-- <artifactId>plexus-component-annotations</artifactId>
-- <version>1.5.5</version>
-- </dependency>
- </dependencies>
- </dependencyManagement>
- <dependencies>
---
-1.9.3
-
diff --git a/0002-Update-to-Plexus-Container-1.5.5.patch b/0002-Update-to-Plexus-Container-1.5.5.patch
new file mode 100644
index 0000000..80a8b4b
--- /dev/null
+++ b/0002-Update-to-Plexus-Container-1.5.5.patch
@@ -0,0 +1,102 @@
+From 4aa783ca170c7e18710d1928a728c6f91592f3ee Mon Sep 17 00:00:00 2001
+From: Mikolaj Izdebski <mizdebsk@redhat.com>
+Date: Wed, 6 Nov 2013 12:46:26 +0100
+Subject: [PATCH 2/4] Update to Plexus Container 1.5.5
+
+---
+ .../java/org/apache/maven/doxia/module/AbstractIdentityTest.java | 3 ++-
+ .../test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java | 3 ++-
+ .../test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java | 3 ++-
+ pom.xml | 7 +------
+ 4 files changed, 7 insertions(+), 9 deletions(-)
+
+diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java
+index 100add3..8c78956 100644
+--- a/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java
++++ b/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java
+@@ -33,6 +33,7 @@ import org.apache.maven.doxia.parser.Parser;
+ import org.apache.maven.doxia.sink.Sink;
+ import org.apache.maven.doxia.sink.SinkTestDocument;
+ import org.apache.maven.doxia.sink.TextSink;
++import org.codehaus.plexus.DefaultPlexusContainer;
+ import org.codehaus.plexus.util.IOUtil;
+
+ /**
+@@ -107,7 +108,7 @@ public abstract class AbstractIdentityTest
+ writer = new StringWriter();
+ sink = new TextSink( writer );
+ Parser parser = createParser();
+- parser.enableLogging( new PlexusLoggerWrapper( getContainer().getLogger() ) );
++ parser.enableLogging( new PlexusLoggerWrapper( ( ( DefaultPlexusContainer )getContainer() ).getLogger() ) );
+ parser.parse( reader, sink );
+ String actual = writer.toString();
+
+diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
+index 93d0f01..5e817d6 100644
+--- a/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
++++ b/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
+@@ -25,6 +25,7 @@ import java.io.Writer;
+
+ import org.apache.maven.doxia.AbstractModuleTest;
+ import org.apache.maven.doxia.logging.PlexusLoggerWrapper;
++import org.codehaus.plexus.DefaultPlexusContainer;
+ import org.codehaus.plexus.util.IOUtil;
+ import org.custommonkey.xmlunit.Diff;
+ import org.custommonkey.xmlunit.XMLUnit;
+@@ -56,7 +57,7 @@ public abstract class AbstractSinkTest
+
+ testWriter.reset();
+ sink = createSink( testWriter );
+- sink.enableLogging( new PlexusLoggerWrapper( getContainer().getLogger() ) );
++ sink.enableLogging( new PlexusLoggerWrapper( ( ( DefaultPlexusContainer )getContainer() ).getLogger() ) );
+ }
+
+ /**
+diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java b/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java
+index 5f9108e..88db2b4 100644
+--- a/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java
++++ b/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java
+@@ -31,6 +31,7 @@ import junit.framework.AssertionFailedError;
+
+ import org.apache.maven.doxia.parser.Parser;
+
++import org.codehaus.plexus.DefaultPlexusContainer;
+ import org.codehaus.plexus.PlexusTestCase;
+ import org.codehaus.plexus.logging.Logger;
+
+@@ -96,7 +97,7 @@ public abstract class AbstractXmlValidator
+ public void testValidateFiles()
+ throws Exception
+ {
+- final Logger logger = getContainer().getLoggerManager().getLoggerForComponent( Parser.ROLE );
++ final Logger logger = ( ( DefaultPlexusContainer )getContainer() ).getLoggerManager().getLoggerForComponent( Parser.ROLE );
+
+ for ( Iterator<Map.Entry<String, String>> it = getTestDocuments().entrySet().iterator(); it.hasNext(); )
+ {
+diff --git a/pom.xml b/pom.xml
+index 4d42f3e..a0dbb9c 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -287,18 +287,13 @@ under the License.
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-container-default</artifactId>
+- <version>1.0-alpha-30</version>
++ <version>1.5.5</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-utils</artifactId>
+ <version>3.0.15</version>
+ </dependency>
+- <dependency><!-- remove when upgrading parent to version 22 -->
+- <groupId>org.codehaus.plexus</groupId>
+- <artifactId>plexus-component-annotations</artifactId>
+- <version>1.5.5</version>
+- </dependency>
+ </dependencies>
+ </dependencyManagement>
+ <dependencies>
+--
+2.1.0
+
diff --git a/0003-Update-to-Commons-Collections-1.10.patch b/0003-Update-to-Commons-Collections-1.10.patch
new file mode 100644
index 0000000..8d97ce0
--- /dev/null
+++ b/0003-Update-to-Commons-Collections-1.10.patch
@@ -0,0 +1,32 @@
+From 948da7364e2e542bb8f0f9b703269162c591ebfa Mon Sep 17 00:00:00 2001
+From: Mikolaj Izdebski <mizdebsk@redhat.com>
+Date: Thu, 7 Nov 2013 08:24:01 +0100
+Subject: [PATCH 3/4] Update to Commons Collections 1.10
+
+---
+ doxia-modules/doxia-module-fo/pom.xml | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/doxia-modules/doxia-module-fo/pom.xml b/doxia-modules/doxia-module-fo/pom.xml
+index 6d54eba..0d89e4f 100644
+--- a/doxia-modules/doxia-module-fo/pom.xml
++++ b/doxia-modules/doxia-module-fo/pom.xml
+@@ -73,7 +73,14 @@ under the License.
+ <dependency>
+ <groupId>commons-configuration</groupId>
+ <artifactId>commons-configuration</artifactId>
+- <version>1.6</version>
++ <version>1.10</version>
++ </dependency>
++ <dependency>
++ <groupId>commons-collections</groupId>
++ <artifactId>commons-collections</artifactId>
++ <version>3.2.1</version>
++ <!-- runtime dep for commons-configuration -->
++ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.xmlgraphics</groupId>
+--
+2.1.0
+
diff --git a/0004-Disable-tests-which-rely-on-ordering-in-set.patch b/0004-Disable-tests-which-rely-on-ordering-in-set.patch
new file mode 100644
index 0000000..d3e70d5
--- /dev/null
+++ b/0004-Disable-tests-which-rely-on-ordering-in-set.patch
@@ -0,0 +1,70 @@
+From a479cba6bde3262a8326e0cad2d6a0f34af7ed6f Mon Sep 17 00:00:00 2001
+From: Michal Srb <msrb@redhat.com>
+Date: Wed, 26 Mar 2014 09:58:20 +0100
+Subject: [PATCH 4/4] Disable tests which rely on ordering in set
+
+These tests fail with Java 8
+---
+ .../src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java | 4 ++++
+ .../java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java | 2 ++
+ 2 files changed, 6 insertions(+)
+
+diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
+index 5e817d6..7439cd3 100644
+--- a/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
++++ b/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
+@@ -419,6 +419,7 @@ public abstract class AbstractSinkTest
+ * invoked on the current sink, produces the same result as
+ * {@link #getFigureBlock getFigureBlock}( source, caption ).
+ */
++ /*
+ public void testFigure() throws Exception
+ {
+ String source = "figure.jpg";
+@@ -469,6 +470,7 @@ public abstract class AbstractSinkTest
+ assertEquals( "Wrong figure!", expected, actual );
+ }
+ }
++ */
+
+ /**
+ * Checks that the sequence <code>[table(),
+@@ -478,6 +480,7 @@ public abstract class AbstractSinkTest
+ * invoked on the current sink, produces the same result as
+ * {@link #getTableBlock getTableBlock}( cell, caption ).
+ */
++ /*
+ public void testTable() throws Exception
+ {
+ String cell = "cell";
+@@ -511,6 +514,7 @@ public abstract class AbstractSinkTest
+ assertEquals( "Wrong table!", expected, actual );
+ }
+ }
++ */
+
+ /**
+ * Checks that the sequence <code>[paragraph(), text( text ),
+diff --git a/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java b/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java
+index 847c341..729357b 100644
+--- a/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java
++++ b/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoAggregateSinkTest.java
+@@ -164,6 +164,7 @@ public class FoAggregateSinkTest
+ /**
+ * Test of figureGraphics method, of class FoAggregateSink.
+ */
++ /*
+ public void testFigureGraphics() throws Exception
+ {
+ try
+@@ -187,6 +188,7 @@ public class FoAggregateSinkTest
+ Diff diff = XMLUnit.compareXML( wrapXml( expected ), wrapXml( actual ) );
+ assertTrue( "Wrong figure!", diff.identical() );
+ }
++ */
+
+ /**
+ * Test of anchor method, of class FoAggregateSink.
+--
+2.1.0
+
diff --git a/0004-Fix-itext-dependency.patch b/0004-Fix-itext-dependency.patch
deleted file mode 100644
index ebacc2a..0000000
--- a/0004-Fix-itext-dependency.patch
+++ /dev/null
@@ -1,245 +0,0 @@
-From 516ad4811e3531889f805e0a8ba62c31ff77f7e3 Mon Sep 17 00:00:00 2001
-From: Stanislav Ochotnicky <sochotnicky@redhat.com>
-Date: Mon, 29 Apr 2013 11:37:12 +0200
-Subject: [PATCH 1/4] Fix itext dependency
-
----
- doxia-modules/doxia-module-itext/pom.xml | 2 +-
- .../apache/maven/doxia/module/itext/ITextFont.java | 16 ++---
- .../apache/maven/doxia/module/itext/ITextSink.java | 6 +-
- .../apache/maven/doxia/module/itext/ITextUtil.java | 69 +---------------------
- .../doxia/module/itext/ITextSinkTestCase.java | 22 -------
- 5 files changed, 13 insertions(+), 102 deletions(-)
-
-diff --git a/doxia-modules/doxia-module-itext/pom.xml b/doxia-modules/doxia-module-itext/pom.xml
-index 86acc37..9cc34ff 100644
---- a/doxia-modules/doxia-module-itext/pom.xml
-+++ b/doxia-modules/doxia-module-itext/pom.xml
-@@ -58,7 +58,7 @@ under the License.
- <dependency>
- <groupId>com.lowagie</groupId>
- <artifactId>itext</artifactId>
-- <version>1.4</version>
-+ <version>2.1.7</version>
- </dependency>
- </dependencies>
-
-diff --git a/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextFont.java b/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextFont.java
-index 2cc8ef1..5dfc882 100644
---- a/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextFont.java
-+++ b/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextFont.java
-@@ -24,7 +24,7 @@ import java.awt.Color;
- import com.lowagie.text.ExceptionConverter;
- import com.lowagie.text.Font;
- import com.lowagie.text.FontFactory;
--import com.lowagie.text.markup.MarkupTags;
-+import com.lowagie.text.html.Markup;
- import com.lowagie.text.pdf.BaseFont;
-
- /**
-@@ -38,16 +38,16 @@ import com.lowagie.text.pdf.BaseFont;
- public class ITextFont
- {
- /** A normal font style */
-- public static final String NORMAL = MarkupTags.CSS_VALUE_NORMAL;
-+ public static final String NORMAL = Markup.CSS_VALUE_NORMAL;
-
- /** A bold font style */
-- public static final String BOLD = MarkupTags.CSS_VALUE_BOLD;
-+ public static final String BOLD = Markup.CSS_VALUE_BOLD;
-
- /** A italic font style */
-- public static final String ITALIC = MarkupTags.CSS_VALUE_ITALIC;
-+ public static final String ITALIC = Markup.CSS_VALUE_ITALIC;
-
- /** An underline font style */
-- public static final String UNDERLINE = MarkupTags.CSS_VALUE_UNDERLINE;
-+ public static final String UNDERLINE = Markup.CSS_VALUE_UNDERLINE;
-
- /** A default font name */
- public static final String DEFAULT_FONT_NAME = FontFactory.HELVETICA;
-@@ -262,7 +262,7 @@ public class ITextFont
- {
- Font font = getCurrentFont();
-
-- return String.valueOf( font.color().getBlue() );
-+ return String.valueOf( font.getColor().getBlue() );
- }
-
- /**
-@@ -274,7 +274,7 @@ public class ITextFont
- {
- Font font = getCurrentFont();
-
-- return String.valueOf( font.color().getGreen() );
-+ return String.valueOf( font.getColor().getGreen() );
- }
-
- /**
-@@ -286,7 +286,7 @@ public class ITextFont
- {
- Font font = getCurrentFont();
-
-- return String.valueOf( font.color().getRed() );
-+ return String.valueOf( font.getColor().getRed() );
- }
-
- /**
-diff --git a/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java b/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java
-index 7c1da55..9561f8e 100644
---- a/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java
-+++ b/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java
-@@ -1231,9 +1231,9 @@ public class ITextSink
- try
- {
- Image image = Image.getInstance( new URL( urlName ) );
-- image.scaleToFit( ITextUtil.getDefaultPageSize().width() / 2, ITextUtil.getDefaultPageSize().height() / 2 );
-- width = image.plainWidth();
-- height = image.plainHeight();
-+ image.scaleToFit( ITextUtil.getDefaultPageSize().getWidth() / 2, ITextUtil.getDefaultPageSize().getHeight() / 2 );
-+ width = image.getPlainWidth();
-+ height = image.getPlainHeight();
- }
- catch ( BadElementException e )
- {
-diff --git a/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextUtil.java b/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextUtil.java
-index 4363413..141646c 100644
---- a/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextUtil.java
-+++ b/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextUtil.java
-@@ -22,9 +22,6 @@ package org.apache.maven.doxia.module.itext;
- import com.lowagie.text.DocumentException;
- import com.lowagie.text.PageSize;
- import com.lowagie.text.Rectangle;
--import com.lowagie.text.xml.XmlToHtml;
--import com.lowagie.text.xml.XmlToPdf;
--import com.lowagie.text.xml.XmlToRtf;
-
- import java.io.InputStream;
- import java.io.OutputStream;
-@@ -77,7 +74,7 @@ public class ITextUtil
- if ( currentField.getType().equals( Rectangle.class ) )
- {
- Rectangle fPageSize = (Rectangle) currentField.get( null );
-- if ( ( rect.width() == fPageSize.width() ) && ( rect.height() == fPageSize.height() ) )
-+ if ( ( rect.getWidth() == fPageSize.getWidth() ) && ( rect.getHeight() == fPageSize.getHeight() ) )
- {
- return currentField.getName();
- }
-@@ -114,68 +111,4 @@ public class ITextUtil
-
- return false;
- }
--
-- /**
-- * Parse an iText XML from the specified <CODE>InputStream</CODE>, writing an Pdf document
-- * specified <CODE>OutputStream</CODE>.
-- *
-- * @param is the <CODE>InputStream</CODE> from which the XML is read.
-- * @param os the <CODE>OutputStream</CODE> to which the result as Pdf is written.
-- * @see com.lowagie.text.xml.XmlToPdf
-- */
-- public static void writePdf( InputStream is, OutputStream os )
-- {
-- try
-- {
-- XmlToPdf x = new XmlToPdf();
--
-- x.parse( is, os );
-- }
-- catch ( DocumentException e )
-- {
-- throw new RuntimeException( "DocumentException : " + e.getMessage(), e );
-- }
-- }
--
-- /**
-- * Parse an iText XML from the specified <CODE>InputStream</CODE>, writing an rtf document
-- * specified <CODE>OutputStream</CODE>.
-- *
-- * @param is the <CODE>InputStream</CODE> from which the XML is read.
-- * @param os the <CODE>OutputStream</CODE> to which the result as RTF is written.
-- * @see com.lowagie.text.xml.XmlToRtf
-- */
-- public static void writeRtf( InputStream is, OutputStream os )
-- {
-- try
-- {
-- XmlToRtf x = new XmlToRtf();
-- x.parse( is, os );
-- }
-- catch ( DocumentException e )
-- {
-- throw new RuntimeException( "DocumentException : " + e.getMessage(), e );
-- }
-- }
--
-- /**
-- * Parse an iText XML from the specified <CODE>InputStream</CODE>, writing an html document
-- * specified <CODE>OutputStream</CODE>.
-- *
-- * @param is the <CODE>InputStream</CODE> from which the XML is read.
-- * @param os the <CODE>OutputStream</CODE> to which the result as Html is written.
-- * @see com.lowagie.text.xml.XmlToHtml
-- */
-- public static void writeHtml( InputStream is, OutputStream os )
-- {
-- try
-- {
-- XmlToHtml x = new XmlToHtml();
-- x.parse( is, os );
-- }
-- catch ( DocumentException e )
-- {
-- throw new RuntimeException( "DocumentException : " + e.getMessage(), e );
-- }
-- }
- }
-diff --git a/doxia-modules/doxia-module-itext/src/test/java/org/apache/maven/doxia/module/itext/ITextSinkTestCase.java b/doxia-modules/doxia-module-itext/src/test/java/org/apache/maven/doxia/module/itext/ITextSinkTestCase.java
-index 3e24d07..50d0d70 100644
---- a/doxia-modules/doxia-module-itext/src/test/java/org/apache/maven/doxia/module/itext/ITextSinkTestCase.java
-+++ b/doxia-modules/doxia-module-itext/src/test/java/org/apache/maven/doxia/module/itext/ITextSinkTestCase.java
-@@ -81,20 +81,6 @@ public class ITextSinkTestCase
- }
-
- /**
-- * Test PDF generation
-- *
-- * @throws Exception
-- */
-- public void testGeneratingPDFFromITextXml()
-- throws Exception
-- {
-- File f = new File( getBasedir(), "src/test/resources/itext/itext.xml" );
--
-- ITextUtil.writePdf( new FileInputStream( f ),
-- new FileOutputStream( getGeneratedFile( "test_itext", "pdf" ) ) );
-- }
--
-- /**
- * Generate a pdf and a rtf from the standart test model.
- *
- * @throws Exception if any
-@@ -107,11 +93,6 @@ public class ITextSinkTestCase
- SinkTestDocument.generate( sink );
-
- sink.close();
--
-- ITextUtil.writePdf( new FileInputStream( getGeneratedFile( "test_model", "xml" ) ),
-- new FileOutputStream( getGeneratedFile( "test_model", "pdf" ) ) );
-- ITextUtil.writeRtf( new FileInputStream( getGeneratedFile( "test_model", "xml" ) ),
-- new FileOutputStream( getGeneratedFile( "test_model", "rtf" ) ) );
- }
-
- /**
-@@ -148,8 +129,5 @@ public class ITextSinkTestCase
-
- sink.flush();
- sink.close();
--
-- ITextUtil.writePdf( new FileInputStream( getGeneratedFile( "empty_anchor", "xml" ) ),
-- new FileOutputStream( getGeneratedFile( "empty_anchor", "pdf" ) ) );
- }
- }
---
-1.9.3
-
diff --git a/maven-doxia.spec b/maven-doxia.spec
index 556c60f..eeab1e3 100644
--- a/maven-doxia.spec
+++ b/maven-doxia.spec
@@ -24,16 +24,16 @@ Source1: RenderingContext.java
# Build against iText 2.x
# http://jira.codehaus.org/browse/DOXIA-53
-Patch2: 0004-Fix-itext-dependency.patch
+Patch1: 0001-Fix-itext-dependency.patch
# Forwarded upstream: DOXIA-504
-Patch3: 0001-Update-to-Plexus-Container-1.5.5.patch
+Patch2: 0002-Update-to-Plexus-Container-1.5.5.patch
# Forwarded upstream: DOXIA-505
-Patch4: 0001-Update-to-Commons-Collections-1.10.patch
+Patch3: 0003-Update-to-Commons-Collections-1.10.patch
# Don't run bad tests which rely on ordering in set (they fail with Java 8)
-Patch5: 0001-Disable-tests-which-rely-on-ordering-in-set.patch
+Patch4: 0004-Disable-tests-which-rely-on-ordering-in-set.patch
BuildArch: noarch
@@ -202,10 +202,10 @@ API documentation for %{name}.
%prep
%setup -q -n doxia-%{version}
+%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
-%patch5 -p1
mkdir doxia-core/src/main/java/org/apache/maven/doxia/sink/render
cp -p %SOURCE1 doxia-core/src/main/java/org/apache/maven/doxia/sink/render/
reply other threads:[~2026-10-19 14:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179242172712.1.2925055505534416895.rpms-maven-doxia-d9f0e2586751@fedoraproject.org \
--to=mizdebsk@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox