org.apache.continuum.buildagent.build.execution.maven.m2
Class MavenTwoBuildExecutor

java.lang.Object
  extended by org.apache.continuum.buildagent.build.execution.AbstractBuildExecutor
      extended by org.apache.continuum.buildagent.build.execution.maven.m2.MavenTwoBuildExecutor
All Implemented Interfaces:
ContinuumAgentBuildExecutor, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

public class MavenTwoBuildExecutor
extends AbstractBuildExecutor
implements ContinuumAgentBuildExecutor


Field Summary
static String CONFIGURATION_GOALS
           
static String ID
           
 
Fields inherited from class org.apache.continuum.buildagent.build.execution.AbstractBuildExecutor
log
 
Fields inherited from interface org.apache.continuum.buildagent.build.execution.ContinuumAgentBuildExecutor
ROLE
 
Constructor Summary
MavenTwoBuildExecutor()
           
 
Method Summary
 ContinuumAgentBuildExecutionResult build(Project project, BuildDefinition buildDefinition, File buildOutput, Map<String,String> environments, String localRepository)
           
 BuildAgentMavenBuilderHelper getBuildAgentMavenBuilderHelper()
           
 List<org.apache.maven.artifact.Artifact> getDeployableArtifacts(Project continuumProject, File workingDirectory, BuildDefinition buildDefinition)
           
 org.apache.maven.project.MavenProject getMavenProject(File workingDirectory, BuildDefinition buildDefinition)
           
 org.apache.maven.project.MavenProjectHelper getProjectHelper()
           
 void setBuildAgentMavenBuilderHelper(BuildAgentMavenBuilderHelper builderHelper)
           
 void setProjectHelper(org.apache.maven.project.MavenProjectHelper projectHelper)
           
 void updateProjectFromWorkingDirectory(File workingDirectory, Project project, BuildDefinition buildDefinition)
           
 
Methods inherited from class org.apache.continuum.buildagent.build.execution.AbstractBuildExecutor
executeShellCommand, findExecutable, getBuildAgentConfigurationService, getBuildAgentInstallationService, getBuildAgentManager, getBuildFileForProject, getContinuumSystemProperties, getDefaultExecutable, getExecutableResolver, getProjectDependencies, getProjectDevelopers, getProjectNotifiers, getProjectParent, getShellCommandHelper, getWorkingDirectory, initialize, isBuilding, isResolveExecutable, killProcess, setBuildAgentConfigurationService, setBuildAgentInstallationService, setBuildAgentManager, setDefaultExecutable, setExecutableResolver, setResolveExecutable, setShellCommandHelper, updateProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.continuum.buildagent.build.execution.ContinuumAgentBuildExecutor
isBuilding, killProcess
 

Field Detail

CONFIGURATION_GOALS

public static final String CONFIGURATION_GOALS
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values
Constructor Detail

MavenTwoBuildExecutor

public MavenTwoBuildExecutor()
Method Detail

getProjectHelper

public org.apache.maven.project.MavenProjectHelper getProjectHelper()

setProjectHelper

public void setProjectHelper(org.apache.maven.project.MavenProjectHelper projectHelper)

getBuildAgentMavenBuilderHelper

public BuildAgentMavenBuilderHelper getBuildAgentMavenBuilderHelper()

setBuildAgentMavenBuilderHelper

public void setBuildAgentMavenBuilderHelper(BuildAgentMavenBuilderHelper builderHelper)

build

public ContinuumAgentBuildExecutionResult build(Project project,
                                                BuildDefinition buildDefinition,
                                                File buildOutput,
                                                Map<String,String> environments,
                                                String localRepository)
                                         throws ContinuumAgentBuildExecutorException,
                                                ContinuumAgentBuildCancelledException
Specified by:
build in interface ContinuumAgentBuildExecutor
Throws:
ContinuumAgentBuildExecutorException
ContinuumAgentBuildCancelledException

getDeployableArtifacts

public List<org.apache.maven.artifact.Artifact> getDeployableArtifacts(Project continuumProject,
                                                                       File workingDirectory,
                                                                       BuildDefinition buildDefinition)
                                                                throws ContinuumAgentBuildExecutorException
Specified by:
getDeployableArtifacts in interface ContinuumAgentBuildExecutor
Overrides:
getDeployableArtifacts in class AbstractBuildExecutor
Throws:
ContinuumAgentBuildExecutorException

updateProjectFromWorkingDirectory

public void updateProjectFromWorkingDirectory(File workingDirectory,
                                              Project project,
                                              BuildDefinition buildDefinition)
                                       throws ContinuumAgentBuildExecutorException
Specified by:
updateProjectFromWorkingDirectory in interface ContinuumAgentBuildExecutor
Throws:
ContinuumAgentBuildExecutorException

getMavenProject

public org.apache.maven.project.MavenProject getMavenProject(File workingDirectory,
                                                             BuildDefinition buildDefinition)
                                                      throws ContinuumAgentBuildExecutorException
Specified by:
getMavenProject in interface ContinuumAgentBuildExecutor
Overrides:
getMavenProject in class AbstractBuildExecutor
Throws:
ContinuumAgentBuildExecutorException


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