org.apache.maven.continuum.core.action
Class CreateProjectsFromMetadataAction
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.action.AbstractAction
org.apache.maven.continuum.core.action.AbstractContinuumAction
org.apache.maven.continuum.core.action.CreateProjectsFromMetadataAction
- All Implemented Interfaces:
- org.codehaus.plexus.action.Action, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
public class CreateProjectsFromMetadataAction
- extends AbstractContinuumAction
Resolve the project url being passed in and gather authentication information
if the url is so configured, then create the projects
Supports:
- standard maven-scm url
- MungedUrl https://username:password@host
- maven settings based, server = host and scm info set to username and password
- Version:
- $Id: CreateProjectsFromMetadataAction.java 1391353 2012-09-28 07:50:49Z brett $
- Author:
- Trygve Laugstøl
Fields inherited from interface org.codehaus.plexus.action.Action |
RESULT_MESSAGES, ROLE |
Method Summary |
void |
execute(Map context)
|
org.apache.maven.settings.MavenSettingsBuilder |
getMavenSettingsBuilder()
|
static String |
getProjectBuilderId(Map<String,Object> context)
|
ContinuumProjectBuilderManager |
getProjectBuilderManager()
|
static ContinuumProjectBuildingResult |
getProjectBuildingResult(Map<String,Object> context)
|
static String |
getUrl(Map<String,Object> context)
|
ContinuumUrlValidator |
getUrlValidator()
|
static boolean |
isCheckoutProjectsInSingleDirectory(Map<String,Object> context)
|
static boolean |
isLoadRecursiveProject(Map<String,Object> context)
|
static void |
setCheckoutProjectsInSingleDirectory(Map<String,Object> context,
boolean checkoutProjectsInSingleDirectory)
|
static void |
setLoadRecursiveProject(Map<String,Object> context,
boolean loadRecursiveProject)
|
void |
setMavenSettingsBuilder(org.apache.maven.settings.MavenSettingsBuilder mavenSettingsBuilder)
|
static void |
setProjectBuilderId(Map<String,Object> context,
String projectBuilderId)
|
void |
setProjectBuilderManager(ContinuumProjectBuilderManager projectBuilderManager)
|
static void |
setUrl(Map<String,Object> context,
String url)
|
void |
setUrlValidator(ContinuumUrlValidator urlValidator)
|
Methods inherited from class org.apache.maven.continuum.core.action.AbstractContinuumAction |
getBoolean, getBoolean, getBuildDefinition, getBuildDefinitionId, getBuildDefinitionTemplate, getBuildId, getBuildId, getBuildTrigger, getInteger, getListOfProjects, getListOfProjectsInGroupWithCommonScmRoot, getObject, getObject, getOldBuildId, getOldScmResult, getOldScmResult, getProject, getProject, getProjectGroupId, getProjectId, getProjectsBuildDefinitionsMap, getProjectScmRoot, getProjectScmRootUrl, getScmResult, getScmResult, getScmResultMap, getString, getString, getUnvalidatedProject, getUnvalidatedProjectGroup, getUpdatedDependencies, getUpdatedDependencies, getWorkingDirectory, isRootDirectory, setBuildDefinition, setBuildDefinitionId, setBuildDefinitionTemplate, setBuildId, setBuildTrigger, setListOfProjects, setListOfProjectsInGroupWithCommonScmRoot, setOldBuildId, setOldScmResult, setProject, setProjectGroupId, setProjectId, setProjectsBuildDefinitionsMap, setProjectScmRoot, setProjectScmRootUrl, setRootDirectory, setScmResult, setScmResultMap, setUnvalidatedProject, setUnvalidatedProjectGroup, setUpdatedDependencies, setWorkingDirectory |
Methods inherited from class org.codehaus.plexus.action.AbstractAction |
addResultMessage, contextualize, getResultMessages, hasResultMessages, lookup, lookup, setResultMessages |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_CHECKOUT_PROJECTS_IN_SINGLE_DIRECTORY
public static final String KEY_CHECKOUT_PROJECTS_IN_SINGLE_DIRECTORY
- See Also:
- Constant Field Values
CreateProjectsFromMetadataAction
public CreateProjectsFromMetadataAction()
execute
public void execute(Map context)
throws ContinuumException,
ContinuumProjectBuilderManagerException,
ContinuumProjectBuilderException
- Throws:
ContinuumException
ContinuumProjectBuilderManagerException
ContinuumProjectBuilderException
getProjectBuilderManager
public ContinuumProjectBuilderManager getProjectBuilderManager()
setProjectBuilderManager
public void setProjectBuilderManager(ContinuumProjectBuilderManager projectBuilderManager)
getMavenSettingsBuilder
public org.apache.maven.settings.MavenSettingsBuilder getMavenSettingsBuilder()
setMavenSettingsBuilder
public void setMavenSettingsBuilder(org.apache.maven.settings.MavenSettingsBuilder mavenSettingsBuilder)
getUrlValidator
public ContinuumUrlValidator getUrlValidator()
setUrlValidator
public void setUrlValidator(ContinuumUrlValidator urlValidator)
getUrl
public static String getUrl(Map<String,Object> context)
setUrl
public static void setUrl(Map<String,Object> context,
String url)
getProjectBuilderId
public static String getProjectBuilderId(Map<String,Object> context)
setProjectBuilderId
public static void setProjectBuilderId(Map<String,Object> context,
String projectBuilderId)
getProjectBuildingResult
public static ContinuumProjectBuildingResult getProjectBuildingResult(Map<String,Object> context)
isLoadRecursiveProject
public static boolean isLoadRecursiveProject(Map<String,Object> context)
setLoadRecursiveProject
public static void setLoadRecursiveProject(Map<String,Object> context,
boolean loadRecursiveProject)
isCheckoutProjectsInSingleDirectory
public static boolean isCheckoutProjectsInSingleDirectory(Map<String,Object> context)
setCheckoutProjectsInSingleDirectory
public static void setCheckoutProjectsInSingleDirectory(Map<String,Object> context,
boolean checkoutProjectsInSingleDirectory)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.