Set svn properties

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@420152 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Carlos Sanchez Gonzalez 2006-07-08 15:49:37 +00:00
parent 7ca5adbbeb
commit df2b72bb6c
10 changed files with 182 additions and 182 deletions

View File

@ -18,7 +18,7 @@ package org.apache.maven.artifact.handler;
/** /**
* @author <a href="mailto:brett@apache.org">Brett Porter</a> * @author <a href="mailto:brett@apache.org">Brett Porter</a>
* @version $Id: AbstractArtifactHandler.java 189871 2005-06-10 00:57:19Z brett $ * @version $Id$
*/ */
public class DefaultArtifactHandler public class DefaultArtifactHandler
implements ArtifactHandler implements ArtifactHandler

View File

@ -26,7 +26,7 @@ import java.util.Locale;
* *
* @author Brett Porter * @author Brett Porter
* @author <a href="evenisse@apache.org">Emmanuel Venisse</a> * @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
* @version $Id: MavenReport.java 163376 2005-02-23 00:06:06Z brett $ * @version $Id$
*/ */
public interface MavenReport public interface MavenReport
{ {

View File

@ -1,37 +1,37 @@
package org.apache.maven.reporting; package org.apache.maven.reporting;
/* /*
* Copyright 2005 The Apache Software Foundation. * Copyright 2005 The Apache Software Foundation.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
/** /**
* An exception occurring during the execution of a Maven report. * An exception occurring during the execution of a Maven report.
* *
* @author Brett Porter * @author Brett Porter
* @author <a href="evenisse@apache.org">Emmanuel Venisse</a> * @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
* @version $Id: MavenReportException.java 163361 2005-02-17 07:00:25Z brett $ * @version $Id$
*/ */
public class MavenReportException extends Exception public class MavenReportException extends Exception
{ {
public MavenReportException( String msg ) public MavenReportException( String msg )
{ {
super( msg ); super( msg );
} }
public MavenReportException( String msg, Exception e ) public MavenReportException( String msg, Exception e )
{ {
super( msg, e ); super( msg, e );
} }
} }

View File

@ -1,30 +1,30 @@
package org.apache.maven.reporting; package org.apache.maven.reporting;
/* /*
* Copyright 2004-2005 The Apache Software Foundation. * Copyright 2004-2005 The Apache Software Foundation.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
/** /**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a> * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @author <a href="evenisse@apache.org">Emmanuel Venisse</a> * @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
* @version $Id: AbstractMavenReportRenderer.java 163373 2005-02-22 03:37:00Z brett $ * @version $Id$
* @todo Later it may be appropriate to create something like a VelocityMavenReportRenderer that could take a velocity template and pipe that through Doxia rather than coding them up like this. * @todo Later it may be appropriate to create something like a VelocityMavenReportRenderer that could take a velocity template and pipe that through Doxia rather than coding them up like this.
*/ */
public interface MavenReportRenderer public interface MavenReportRenderer
{ {
String getTitle(); String getTitle();
void render(); void render();
} }

View File

@ -1,109 +1,109 @@
package org.apache.maven.reporting; package org.apache.maven.reporting;
/* /*
* Copyright 2001-2005 The Apache Software Foundation. * Copyright 2001-2005 The Apache Software Foundation.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import org.apache.maven.doxia.sink.Sink; import org.apache.maven.doxia.sink.Sink;
import org.apache.maven.doxia.siterenderer.RendererException; import org.apache.maven.doxia.siterenderer.RendererException;
import org.apache.maven.reporting.sink.MultiPageSink; import org.apache.maven.reporting.sink.MultiPageSink;
import org.apache.maven.reporting.sink.SinkFactory; import org.apache.maven.reporting.sink.SinkFactory;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
/** /**
* @author <a href="evenisse@apache.org">Emmanuel Venisse</a> * @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
* @version $Id: MavenReport.java 163376 2005-02-23 00:06:06Z brett $ * @version $Id$
*/ */
public abstract class AbstractMavenMultiPageReport public abstract class AbstractMavenMultiPageReport
extends AbstractMavenReport extends AbstractMavenReport
{ {
private SinkFactory factory; private SinkFactory factory;
private List sinks = new ArrayList(); private List sinks = new ArrayList();
public void setSinkFactory( SinkFactory factory ) public void setSinkFactory( SinkFactory factory )
{ {
this.factory = factory; this.factory = factory;
} }
public SinkFactory getSinkFactory() public SinkFactory getSinkFactory()
{ {
return factory; return factory;
} }
public boolean useDefaultSiteDescriptor() public boolean useDefaultSiteDescriptor()
{ {
return true; return true;
} }
public abstract boolean usePageLinkBar(); public abstract boolean usePageLinkBar();
private Sink getSink( String outputName ) private Sink getSink( String outputName )
throws RendererException, IOException throws RendererException, IOException
{ {
return factory.getSink( outputName ); return factory.getSink( outputName );
} }
public MultiPageSink startPage( String outputName ) public MultiPageSink startPage( String outputName )
throws RendererException, IOException throws RendererException, IOException
{ {
return new MultiPageSink( outputName, getSink( outputName ) ); return new MultiPageSink( outputName, getSink( outputName ) );
} }
public void endPage( MultiPageSink sink ) public void endPage( MultiPageSink sink )
{ {
if ( usePageLinkBar() ) if ( usePageLinkBar() )
{ {
sinks.add( sink ); sinks.add( sink );
} }
else else
{ {
sink.closeSink(); sink.closeSink();
} }
} }
protected void closeReport() protected void closeReport()
{ {
if ( !sinks.isEmpty() ) if ( !sinks.isEmpty() )
{ {
for ( Iterator i = sinks.iterator(); i.hasNext(); ) for ( Iterator i = sinks.iterator(); i.hasNext(); )
{ {
MultiPageSink currentSink = (MultiPageSink) i.next(); MultiPageSink currentSink = (MultiPageSink) i.next();
currentSink.paragraph(); currentSink.paragraph();
for ( int counter = 1; counter <= sinks.size(); counter++ ) for ( int counter = 1; counter <= sinks.size(); counter++ )
{ {
if ( counter > 1 ) if ( counter > 1 )
{ {
currentSink.text( "&nbsp;" ); currentSink.text( "&nbsp;" );
} }
MultiPageSink sink = (MultiPageSink) sinks.get( counter - 1 ); MultiPageSink sink = (MultiPageSink) sinks.get( counter - 1 );
sink.link( sink.getOutputName() + ".html" ); sink.link( sink.getOutputName() + ".html" );
sink.text( String.valueOf( counter ) ); sink.text( String.valueOf( counter ) );
sink.link_(); sink.link_();
} }
currentSink.paragraph_(); currentSink.paragraph_();
currentSink.closeSink(); currentSink.closeSink();
} }
} }
super.closeReport(); super.closeReport();
} }
} }

View File

@ -32,7 +32,7 @@ import java.util.Locale;
* The basis for a Maven report. * The basis for a Maven report.
* *
* @author <a href="evenisse@apache.org">Emmanuel Venisse</a> * @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
* @version $Id: MavenReport.java 163376 2005-02-23 00:06:06Z brett $ * @version $Id$
*/ */
public abstract class AbstractMavenReport public abstract class AbstractMavenReport
extends AbstractMojo extends AbstractMojo

View File

@ -33,7 +33,7 @@ import java.util.Properties;
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a> * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @author <a href="evenisse@apache.org">Emmanuel Venisse</a> * @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
* @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a> * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
* @version $Id: AbstractMavenReportRenderer.java 163373 2005-02-22 03:37:00Z brett $ * @version $Id$
* @todo Later it may be appropriate to create something like a VelocityMavenReportRenderer that could take a velocity template and pipe that through Doxia rather than coding them up like this. * @todo Later it may be appropriate to create something like a VelocityMavenReportRenderer that could take a velocity template and pipe that through Doxia rather than coding them up like this.
*/ */
public abstract class AbstractMavenReportRenderer public abstract class AbstractMavenReportRenderer

View File

@ -25,7 +25,7 @@ import java.io.IOException;
/** /**
* @author <a href="evenisse@apache.org">Emmanuel Venisse</a> * @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
* @version $Id: MavenReport.java 163376 2005-02-23 00:06:06Z brett $ * @version $Id$
*/ */
public class SinkFactory public class SinkFactory
{ {

View File

@ -34,7 +34,7 @@ import java.util.List;
/** /**
* @author jdcasey * @author jdcasey
* @version $Id: DefaultMavenSettingsBuilder.java 189510 2005-06-08 03:27:43Z jdcasey $ * @version $Id$
*/ */
public class DefaultMavenSettingsBuilder public class DefaultMavenSettingsBuilder
extends AbstractLogEnabled extends AbstractLogEnabled

View File

@ -23,7 +23,7 @@ import java.io.IOException;
/** /**
* @author jdcasey * @author jdcasey
* @version $Id: MavenSettingsBuilder.java 189510 2005-06-08 03:27:43Z jdcasey $ * @version $Id$
*/ */
public interface MavenSettingsBuilder public interface MavenSettingsBuilder
{ {