public class MavenSession extends AbstractMavenComponent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUILD_END_GOAL
Tag for build end goal.
|
static java.lang.String |
BUILD_START_GOAL
Tag for build start goal.
|
static java.lang.String |
DRIVER_SCRIPT_NAME
Initialization jellyscript name.
|
| Constructor and Description |
|---|
MavenSession()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attainGoals(Project project,
java.util.List goals)
Attain a list of goals.
|
java.util.Set |
getAllGoalNames()
Return all goals requested to be attained.
|
java.lang.String |
getGoalDescription(java.lang.String goalName)
Get a given goal's description.
|
java.util.Collection |
getPluginList()
Return the current list of plugins.
|
PluginManager |
getPluginManager() |
Project |
getPluginProjectFromGoal(java.lang.String goal)
Returns a plugin project for the given goal.
|
java.util.Set |
getProjectGoals(Project project)
Return the goals for the given project.
|
MavenJellyContext |
getRootContext() |
static java.io.File |
getRootDescriptorFile() |
Project |
getRootProject() |
void |
initialize()
Perform pre-build initialization.
|
void |
setPluginManager(PluginManager pluginManager)
Set the plugin manager to handle plugin loading for the session
|
void |
setRootContext(MavenJellyContext context)
Set the context for the session
|
static void |
setRootDescriptorFile(java.io.File descriptorFile)
Set the top level project for the session
|
void |
setRootProject(Project project)
Set the top level project object for the session
|
getMessage, getMessage, getProject, setProjectpublic static final java.lang.String BUILD_START_GOAL
public static final java.lang.String BUILD_END_GOAL
public static final java.lang.String DRIVER_SCRIPT_NAME
public void setRootContext(MavenJellyContext context)
context - the context to usepublic MavenJellyContext getRootContext()
public static void setRootDescriptorFile(java.io.File descriptorFile)
descriptorFile - the POM for the top level projectpublic static java.io.File getRootDescriptorFile()
public void setRootProject(Project project)
project - the top level projectpublic Project getRootProject()
public void setPluginManager(PluginManager pluginManager)
pluginManager - a plugin managerpublic PluginManager getPluginManager()
public void initialize()
throws java.lang.Exception
java.lang.Exception - If an error occurs while performing
runtime initialization.public java.util.Set getAllGoalNames()
public java.lang.String getGoalDescription(java.lang.String goalName)
goalName - Goal name to get the description for.public void attainGoals(Project project, java.util.List goals) throws java.lang.Exception
project - the project being processedgoals - a list of goal names to executejava.lang.Exception - when anything goes wrongpublic Project getPluginProjectFromGoal(java.lang.String goal) throws MavenException
goal - a goal nameMavenException - when anything goes wrongpublic java.util.Set getProjectGoals(Project project) throws MavenException
project - A projectMavenException - when anything goes wrongpublic java.util.Collection getPluginList()
Copyright © 2001-2013 Apache Software Foundation. All Rights Reserved.