You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2009/07/14 20:09:13 UTC

svn commit: r794000 - /maven/shared/branches/maven-reporting-impl-2.0.4.x/src/main/java/org/apache/maven/reporting/AbstractMavenMultiPageReport.java

Author: dennisl
Date: Tue Jul 14 18:09:12 2009
New Revision: 794000

URL: http://svn.apache.org/viewvc?rev=794000&view=rev
Log:
o Set EOL style to native

Modified:
    maven/shared/branches/maven-reporting-impl-2.0.4.x/src/main/java/org/apache/maven/reporting/AbstractMavenMultiPageReport.java   (contents, props changed)

Modified: maven/shared/branches/maven-reporting-impl-2.0.4.x/src/main/java/org/apache/maven/reporting/AbstractMavenMultiPageReport.java
URL: http://svn.apache.org/viewvc/maven/shared/branches/maven-reporting-impl-2.0.4.x/src/main/java/org/apache/maven/reporting/AbstractMavenMultiPageReport.java?rev=794000&r1=793999&r2=794000&view=diff
==============================================================================
--- maven/shared/branches/maven-reporting-impl-2.0.4.x/src/main/java/org/apache/maven/reporting/AbstractMavenMultiPageReport.java (original)
+++ maven/shared/branches/maven-reporting-impl-2.0.4.x/src/main/java/org/apache/maven/reporting/AbstractMavenMultiPageReport.java Tue Jul 14 18:09:12 2009
@@ -1,112 +1,112 @@
-package org.apache.maven.reporting;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import org.apache.maven.doxia.sink.Sink;
-import org.apache.maven.doxia.siterenderer.RendererException;
-import org.apache.maven.reporting.sink.MultiPageSink;
-import org.apache.maven.reporting.sink.SinkFactory;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-/**
- * @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
- * @version $Id: MavenReport.java 163376 2005-02-23 00:06:06Z brett $
- */
-public abstract class AbstractMavenMultiPageReport
-    extends AbstractMavenReport
-{
-    private SinkFactory factory;
-
-    private List sinks = new ArrayList();
-
-    public void setSinkFactory( SinkFactory factory )
-    {
-        this.factory = factory;
-    }
-
-    public SinkFactory getSinkFactory()
-    {
-        return factory;
-    }
-
-    public boolean useDefaultSiteDescriptor()
-    {
-        return true;
-    }
-
-    public abstract boolean usePageLinkBar();
-
-    private Sink getSink( String outputName )
-        throws RendererException, IOException
-    {
-        return factory.getSink( outputName );
-    }
-
-    public MultiPageSink startPage( String outputName )
-        throws RendererException, IOException
-    {
-        return new MultiPageSink( outputName, getSink( outputName ) );
-    }
-
-    public void endPage( MultiPageSink sink )
-    {
-        if ( usePageLinkBar() )
-        {
-            sinks.add( sink );
-        }
-        else
-        {
-            sink.closeSink();
-        }
-    }
-
-    protected void closeReport()
-    {
-        if ( !sinks.isEmpty() )
-        {
-            for ( Iterator i = sinks.iterator(); i.hasNext(); )
-            {
-                MultiPageSink currentSink = (MultiPageSink) i.next();
-
-                currentSink.paragraph();
-
-                for ( int counter = 1; counter <= sinks.size(); counter++ )
-                {
-                    if ( counter > 1 )
-                    {
-                        currentSink.text( "&nbsp;" );
-                    }
-                    MultiPageSink sink = (MultiPageSink) sinks.get( counter - 1 );
-                    sink.link( sink.getOutputName() + ".html" );
-                    sink.text( String.valueOf( counter ) );
-                    sink.link_();
-                }
-                currentSink.paragraph_();
-                currentSink.closeSink();
-            }
-        }
-
-        super.closeReport();
-    }
-}
+package org.apache.maven.reporting;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.apache.maven.doxia.sink.Sink;
+import org.apache.maven.doxia.siterenderer.RendererException;
+import org.apache.maven.reporting.sink.MultiPageSink;
+import org.apache.maven.reporting.sink.SinkFactory;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+/**
+ * @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
+ * @version $Id: MavenReport.java 163376 2005-02-23 00:06:06Z brett $
+ */
+public abstract class AbstractMavenMultiPageReport
+    extends AbstractMavenReport
+{
+    private SinkFactory factory;
+
+    private List sinks = new ArrayList();
+
+    public void setSinkFactory( SinkFactory factory )
+    {
+        this.factory = factory;
+    }
+
+    public SinkFactory getSinkFactory()
+    {
+        return factory;
+    }
+
+    public boolean useDefaultSiteDescriptor()
+    {
+        return true;
+    }
+
+    public abstract boolean usePageLinkBar();
+
+    private Sink getSink( String outputName )
+        throws RendererException, IOException
+    {
+        return factory.getSink( outputName );
+    }
+
+    public MultiPageSink startPage( String outputName )
+        throws RendererException, IOException
+    {
+        return new MultiPageSink( outputName, getSink( outputName ) );
+    }
+
+    public void endPage( MultiPageSink sink )
+    {
+        if ( usePageLinkBar() )
+        {
+            sinks.add( sink );
+        }
+        else
+        {
+            sink.closeSink();
+        }
+    }
+
+    protected void closeReport()
+    {
+        if ( !sinks.isEmpty() )
+        {
+            for ( Iterator i = sinks.iterator(); i.hasNext(); )
+            {
+                MultiPageSink currentSink = (MultiPageSink) i.next();
+
+                currentSink.paragraph();
+
+                for ( int counter = 1; counter <= sinks.size(); counter++ )
+                {
+                    if ( counter > 1 )
+                    {
+                        currentSink.text( "&nbsp;" );
+                    }
+                    MultiPageSink sink = (MultiPageSink) sinks.get( counter - 1 );
+                    sink.link( sink.getOutputName() + ".html" );
+                    sink.text( String.valueOf( counter ) );
+                    sink.link_();
+                }
+                currentSink.paragraph_();
+                currentSink.closeSink();
+            }
+        }
+
+        super.closeReport();
+    }
+}

Propchange: maven/shared/branches/maven-reporting-impl-2.0.4.x/src/main/java/org/apache/maven/reporting/AbstractMavenMultiPageReport.java
------------------------------------------------------------------------------
    svn:eol-style = native