maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r1003019 - /maven/doxia/doxia/trunk/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java
Date Thu, 30 Sep 2010 11:49:39 GMT
Author: ltheussl
Date: Thu Sep 30 11:49:39 2010
New Revision: 1003019

URL: http://svn.apache.org/viewvc?rev=1003019&view=rev
Log:
move logging from close() to flush()

Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java?rev=1003019&r1=1003018&r2=1003019&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-itext/src/main/java/org/apache/maven/doxia/module/itext/ITextSink.java
Thu Sep 30 11:49:39 2010
@@ -192,6 +192,12 @@ public class ITextSink
     {
         IOUtil.close( writer );
 
+        init();
+    }
+
+    /** {@inheritDoc} */
+    public void flush()
+    {
         if ( getLog().isWarnEnabled() && this.warnMessages != null )
         {
             for ( Iterator it = this.warnMessages.entrySet().iterator(); it.hasNext(); )
@@ -207,17 +213,9 @@ public class ITextSink
                     getLog().warn( msg );
                 }
             }
-
-            this.warnMessages = null;
         }
 
-        init();
-    }
-
-    /** {@inheritDoc} */
-    public void flush()
-    {
-        super.flush();
+        this.warnMessages = null;
     }
 
     // ----------------------------------------------------------------------
@@ -1186,7 +1184,7 @@ public class ITextSink
                 try
                 {
                     nameFile = new File( System.getProperty( "itext.basedir" ), name );
-                    urlName = nameFile.toURL().toString();
+                    urlName = nameFile.toURI().toURL().toString();
                 }
                 catch ( MalformedURLException e )
                 {



Mime
View raw message