org.apache.maven.continuum.project.builder
Class AbstractContinuumProjectBuilder

java.lang.Object
  extended by org.apache.maven.continuum.project.builder.AbstractContinuumProjectBuilder
All Implemented Interfaces:
ContinuumProjectBuilder, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Direct Known Subclasses:
MavenOneContinuumProjectBuilder, MavenTwoContinuumProjectBuilder

public abstract class AbstractContinuumProjectBuilder
extends Object
implements ContinuumProjectBuilder, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

Version:
$Id: AbstractContinuumProjectBuilder.java 1372260 2012-08-13 04:29:09Z brett $
Author:
Trygve Laugstøl

Field Summary
protected  org.slf4j.Logger log
           
 
Fields inherited from interface org.apache.maven.continuum.project.builder.ContinuumProjectBuilder
ROLE
 
Constructor Summary
AbstractContinuumProjectBuilder()
           
 
Method Summary
protected  File createMetadataFile(ContinuumProjectBuildingResult result, URL metadata, String username, String password)
          Create metadata file and handle exceptions, adding the errors to the result object.
protected  File createMetadataFile(URL metadata, String username, String password, ContinuumProjectBuildingResult result)
           
 void initialize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.continuum.project.builder.ContinuumProjectBuilder
buildProjectsFromMetadata, buildProjectsFromMetadata, buildProjectsFromMetadata, buildProjectsFromMetadata, getDefaultBuildDefinitionTemplate
 

Field Detail

log

protected final org.slf4j.Logger log
Constructor Detail

AbstractContinuumProjectBuilder

public AbstractContinuumProjectBuilder()
Method Detail

initialize

public void initialize()
                throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

createMetadataFile

protected File createMetadataFile(URL metadata,
                                  String username,
                                  String password,
                                  ContinuumProjectBuildingResult result)
                           throws IOException,
                                  URISyntaxException,
                                  org.apache.http.HttpException
Throws:
IOException
URISyntaxException
org.apache.http.HttpException

createMetadataFile

protected File createMetadataFile(ContinuumProjectBuildingResult result,
                                  URL metadata,
                                  String username,
                                  String password)
Create metadata file and handle exceptions, adding the errors to the result object.

Parameters:
result - holder with result and errors.
metadata -
username -
password -
Returns:


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.