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>
* @version $Id: AbstractArtifactHandler.java 189871 2005-06-10 00:57:19Z brett $
* @version $Id$
*/
public class DefaultArtifactHandler
implements ArtifactHandler

View File

@ -26,7 +26,7 @@ import java.util.Locale;
*
* @author Brett Porter
* @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
{

View File

@ -1,37 +1,37 @@
package org.apache.maven.reporting;
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed 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.
*/
/**
* An exception occurring during the execution of a Maven report.
*
* @author Brett Porter
* @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
* @version $Id: MavenReportException.java 163361 2005-02-17 07:00:25Z brett $
*/
public class MavenReportException extends Exception
{
public MavenReportException( String msg )
{
super( msg );
}
public MavenReportException( String msg, Exception e )
{
super( msg, e );
}
}
package org.apache.maven.reporting;
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed 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.
*/
/**
* An exception occurring during the execution of a Maven report.
*
* @author Brett Porter
* @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
* @version $Id$
*/
public class MavenReportException extends Exception
{
public MavenReportException( String msg )
{
super( msg );
}
public MavenReportException( String msg, Exception e )
{
super( msg, e );
}
}

View File

@ -1,30 +1,30 @@
package org.apache.maven.reporting;
/*
* Copyright 2004-2005 The Apache Software Foundation.
*
* Licensed 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.
*/
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
* @version $Id: AbstractMavenReportRenderer.java 163373 2005-02-22 03:37:00Z brett $
* @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
{
String getTitle();
void render();
package org.apache.maven.reporting;
/*
* Copyright 2004-2005 The Apache Software Foundation.
*
* Licensed 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.
*/
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
* @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.
*/
public interface MavenReportRenderer
{
String getTitle();
void render();
}

View File

@ -1,109 +1,109 @@
package org.apache.maven.reporting;
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed 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;
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed 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$
*/
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();
}
}

View File

@ -32,7 +32,7 @@ import java.util.Locale;
* The basis for a Maven report.
*
* @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
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="evenisse@apache.org">Emmanuel Venisse</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.
*/
public abstract class AbstractMavenReportRenderer

View File

@ -25,7 +25,7 @@ import java.io.IOException;
/**
* @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
{

View File

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

View File

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