Blame SOURCES/0002-Update-to-Plexus-Container-1.5.5.patch

ce7435
From 6a3583cafd46194b6c2c5f4db061f72f16d014ef Mon Sep 17 00:00:00 2001
ce7435
From: Mikolaj Izdebski <mizdebsk@redhat.com>
ce7435
Date: Wed, 6 Nov 2013 12:46:26 +0100
ce7435
Subject: [PATCH 2/4] Update to Plexus Container 1.5.5
ce7435
ce7435
---
ce7435
 .../java/org/apache/maven/doxia/module/AbstractIdentityTest.java     | 3 ++-
ce7435
 .../test/java/org/apache/maven/doxia/sink/impl/AbstractSinkTest.java | 5 +++--
ce7435
 .../test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java   | 3 ++-
ce7435
 pom.xml                                                              | 2 +-
ce7435
 4 files changed, 8 insertions(+), 5 deletions(-)
ce7435
ce7435
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
ce7435
index 2f4f495..540461d 100644
ce7435
--- a/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java
ce7435
+++ b/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java
ce7435
@@ -33,6 +33,7 @@ import org.apache.maven.doxia.parser.Parser;
ce7435
 import org.apache.maven.doxia.sink.Sink;
ce7435
 import org.apache.maven.doxia.sink.impl.SinkTestDocument;
ce7435
 import org.apache.maven.doxia.sink.impl.TextSink;
ce7435
+import org.codehaus.plexus.DefaultPlexusContainer;
ce7435
 import org.codehaus.plexus.util.IOUtil;
ce7435
 
ce7435
 /**
ce7435
@@ -107,7 +108,7 @@ public abstract class AbstractIdentityTest
ce7435
         writer = new StringWriter();
ce7435
         sink = new TextSink( writer );
ce7435
         Parser parser = createParser();
ce7435
-        parser.enableLogging( new PlexusLoggerWrapper( getContainer().getLogger() ) );
ce7435
+        parser.enableLogging( new PlexusLoggerWrapper( ( ( DefaultPlexusContainer )getContainer() ).getLogger() ) );
ce7435
         parser.parse( reader, sink );
ce7435
         String actual = writer.toString();
ce7435
 
ce7435
diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/sink/impl/AbstractSinkTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/sink/impl/AbstractSinkTest.java
ce7435
index a67a114..3ac8734 100644
ce7435
--- a/doxia-core/src/test/java/org/apache/maven/doxia/sink/impl/AbstractSinkTest.java
ce7435
+++ b/doxia-core/src/test/java/org/apache/maven/doxia/sink/impl/AbstractSinkTest.java
ce7435
@@ -28,6 +28,7 @@ import org.apache.maven.doxia.logging.PlexusLoggerWrapper;
ce7435
 import org.apache.maven.doxia.sink.Sink;
ce7435
 import org.apache.maven.doxia.sink.SinkEventAttributes;
ce7435
 import org.apache.maven.doxia.sink.impl.SinkEventAttributeSet;
ce7435
+import org.codehaus.plexus.DefaultPlexusContainer;
ce7435
 import org.codehaus.plexus.util.IOUtil;
ce7435
 import org.custommonkey.xmlunit.Diff;
ce7435
 import org.custommonkey.xmlunit.XMLUnit;
ce7435
@@ -59,7 +60,7 @@ public abstract class AbstractSinkTest
ce7435
 
ce7435
         testWriter.reset();
ce7435
         sink = createSink( testWriter );
ce7435
-        sink.enableLogging( new PlexusLoggerWrapper( getContainer().getLogger() ) );
ce7435
+        sink.enableLogging( new PlexusLoggerWrapper( ( ( DefaultPlexusContainer )getContainer() ).getLogger() ) );
ce7435
     }
ce7435
 
ce7435
     /**
ce7435
@@ -809,7 +810,7 @@ public abstract class AbstractSinkTest
ce7435
 
ce7435
         testWriter.reset();
ce7435
         sink = createSink( testWriter );
ce7435
-        sink.enableLogging( new PlexusLoggerWrapper( getContainer().getLogger() ) );
ce7435
+        sink.enableLogging( new PlexusLoggerWrapper( ( ( DefaultPlexusContainer )getContainer() ).getLogger() ));
ce7435
 
ce7435
         comment = "-";
ce7435
         sink.comment( comment );
ce7435
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
ce7435
index 5f9108e..88db2b4 100644
ce7435
--- a/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java
ce7435
+++ b/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java
ce7435
@@ -31,6 +31,7 @@ import junit.framework.AssertionFailedError;
ce7435
 
ce7435
 import org.apache.maven.doxia.parser.Parser;
ce7435
 
ce7435
+import org.codehaus.plexus.DefaultPlexusContainer;
ce7435
 import org.codehaus.plexus.PlexusTestCase;
ce7435
 import org.codehaus.plexus.logging.Logger;
ce7435
 
ce7435
@@ -96,7 +97,7 @@ public abstract class AbstractXmlValidator
ce7435
     public void testValidateFiles()
ce7435
         throws Exception
ce7435
     {
ce7435
-        final Logger logger = getContainer().getLoggerManager().getLoggerForComponent( Parser.ROLE );
ce7435
+        final Logger logger = ( ( DefaultPlexusContainer )getContainer() ).getLoggerManager().getLoggerForComponent( Parser.ROLE );
ce7435
 
ce7435
         for ( Iterator<Map.Entry<String, String>> it = getTestDocuments().entrySet().iterator(); it.hasNext(); )
ce7435
         {
ce7435
diff --git a/pom.xml b/pom.xml
ce7435
index 134f8b8..fcf4f32 100644
ce7435
--- a/pom.xml
ce7435
+++ b/pom.xml
ce7435
@@ -180,7 +180,7 @@ under the License.
ce7435
       <dependency>
ce7435
         <groupId>org.codehaus.plexus</groupId>
ce7435
         <artifactId>plexus-container-default</artifactId>
ce7435
-        <version>1.0-alpha-30</version>
ce7435
+        <version>1.5.5</version>
ce7435
       </dependency>
ce7435
       <dependency>
ce7435
         <groupId>org.codehaus.plexus</groupId>
ce7435
-- 
ce7435
2.5.5
ce7435