|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.AbstractItem
hudson.model.Job<P,R>
hudson.model.AbstractProject<P,R>
hudson.maven.AbstractMavenProject<MavenModule,MavenBuild>
hudson.maven.MavenModule
public final class MavenModule
Job that builds projects based on Maven2.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.maven.AbstractMavenProject |
|---|
AbstractMavenProject.MavenModuleDependency |
| Nested classes/interfaces inherited from class hudson.model.AbstractProject |
|---|
AbstractProject.AbstractProjectDescriptor, AbstractProject.BecauseOfBuildInProgress, AbstractProject.BecauseOfDownstreamBuildInProgress, AbstractProject.BecauseOfUpstreamBuildInProgress |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary |
|---|
| Fields inherited from class hudson.model.AbstractProject |
|---|
ABORT, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, builds, disabled, transientActions, triggers |
| Fields inherited from class hudson.model.Job |
|---|
HISTORY_ADAPTER, nextBuildNumber, properties |
| Fields inherited from class hudson.model.AbstractItem |
|---|
description, name |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Fields inherited from interface hudson.model.Item |
|---|
BUILD, CONFIGURE, CREATE, DELETE, EXTENDED_READ, PERMISSIONS, READ, WORKSPACE |
| Method Summary | |
|---|---|
protected void |
addTransientActionsFromBuild(MavenBuild build,
List<Action> collection,
Set<Class> added)
|
ModuleDependency |
asDependency()
Gets groupId+artifactId+version as ModuleDependency. |
protected void |
buildDependencyGraph(DependencyGraph graph)
|
protected List<MavenReporter> |
createReporters()
Creates a list of MavenReporters to be used for a build of this project. |
protected void |
doSetName(String name)
|
Label |
getAssignedLabel()
MavenModule uses the workspace of the MavenModuleSet,
so it always needs to be built on the same slave as the parent. |
protected Class<MavenBuild> |
getBuildClass()
|
List<MavenModule> |
getChildren()
Gets all the child modules (that are listed in the <module> element in our POM.) |
String |
getDisplayName()
|
String |
getGoals()
Gets the list of goals to execute for this module. |
JDK |
getJDK()
|
LogRotator |
getLogRotator()
MavenModule follows the same log rotation schedule as its parent. |
ModuleName |
getModuleName()
|
MavenModuleSet |
getParent()
|
String |
getPronoun()
|
DescribableList<Publisher,Descriptor<Publisher>> |
getPublishersList()
|
String |
getRelativePath()
Relative path to this module's root directory from the workspace of a MavenModuleSet. |
DescribableList<MavenReporter,Descriptor<MavenReporter>> |
getReporters()
List of active MavenReporters configured for this module. |
String |
getShortUrl()
|
List<MavenModule> |
getSubsidiaries()
Computes the list of MavenModules that are 'under' this POM filesystem-wise. |
String |
getUserConfiguredGoals()
Gets the list of goals specified by the user, without taking inheritance and POM default goals into account. |
String |
getVersion()
Gets the version number in Maven POM as of the last build. |
Resource |
getWorkspaceResource()
Deprecated. as of 1.319 in AbstractProject. |
Maven.MavenInstallation |
inferMavenInstallation()
|
boolean |
isBuildable()
|
boolean |
isFingerprintConfigured()
|
boolean |
isNameEditable()
|
protected MavenBuild |
newBuild()
|
void |
onLoad(ItemGroup<? extends Item> parent,
String name)
|
protected void |
performDelete()
|
void |
setLogRotator(LogRotator logRotator)
Deprecated. Not allowed to configure log rotation per module. |
protected void |
submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
boolean |
supportsLogRotator()
|
String |
toString()
for debug purpose |
protected void |
updateTransientActions()
|
| Methods inherited from class hudson.maven.AbstractMavenProject |
|---|
createTransientActions |
| Methods inherited from class hudson.model.AbstractItem |
|---|
checkPermission, delete, delete, doConfigDotXml, doDoDelete, doSubmitDescription, getAbsoluteUrl, getApi, getConfigFile, getDescription, getDescriptorByName, getFullDisplayName, getFullName, getName, getRootDir, getSearchUrl, getUrl, hasPermission, setDescription |
| Methods inherited from class hudson.model.Actionable |
|---|
addAction, getAction, getAction, getActions |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface hudson.model.Saveable |
|---|
save |
| Methods inherited from interface hudson.model.Item |
|---|
delete, getAbsoluteUrl, getAllJobs, getFullDisplayName, getFullName, getName, getUrl, onCopiedFrom, save |
| Methods inherited from interface hudson.model.PersistenceRoot |
|---|
getRootDir |
| Methods inherited from interface hudson.search.SearchableModelObject |
|---|
getSearch |
| Methods inherited from interface hudson.search.SearchItem |
|---|
getSearchIndex, getSearchName, getSearchUrl |
| Methods inherited from interface hudson.security.AccessControlled |
|---|
checkPermission, getACL, hasPermission |
| Methods inherited from interface hudson.model.Queue.Task |
|---|
getFullDisplayName, getName, getUrl |
| Methods inherited from interface hudson.model.queue.SubTask |
|---|
getEstimatedDuration |
| Method Detail |
|---|
public LogRotator getLogRotator()
MavenModule follows the same log rotation schedule as its parent.
getLogRotator in class Job<MavenModule,MavenBuild>public void setLogRotator(LogRotator logRotator)
setLogRotator in class Job<MavenModule,MavenBuild>public boolean supportsLogRotator()
supportsLogRotator in class Job<MavenModule,MavenBuild>public boolean isBuildable()
isBuildable in class AbstractProject<MavenModule,MavenBuild>public List<MavenModule> getSubsidiaries()
MavenModules that are 'under' this POM filesystem-wise. The list doens't include
this module itself.
Note that this doesn't necessary has anything to do with the module inheritance structure or parent/child relationship of the POM.
protected void doSetName(String name)
doSetName in class AbstractItem
public void onLoad(ItemGroup<? extends Item> parent,
String name)
throws IOException
onLoad in interface ItemonLoad in class AbstractProject<MavenModule,MavenBuild>IOExceptionpublic String getRelativePath()
MavenModuleSet.
The path separator is normalized to '/'.
public String getVersion()
public String getGoals()
public String getUserConfiguredGoals()
This is only used to present the UI screen, and in
all the other cases getGoals() should be used.
public DescribableList<Publisher,Descriptor<Publisher>> getPublishersList()
getPublishersList in class AbstractProject<MavenModule,MavenBuild>public JDK getJDK()
getJDK in class AbstractProject<MavenModule,MavenBuild>protected Class<MavenBuild> getBuildClass()
getBuildClass in class AbstractProject<MavenModule,MavenBuild>
protected MavenBuild newBuild()
throws IOException
newBuild in class AbstractProject<MavenModule,MavenBuild>IOExceptionpublic ModuleName getModuleName()
public ModuleDependency asDependency()
ModuleDependency.
public String getShortUrl()
getShortUrl in interface ItemgetShortUrl in class AbstractItem@Exported(visibility=2) public String getDisplayName()
getDisplayName in interface ItemgetDisplayName in interface ModelObjectgetDisplayName in interface ResourceActivitygetDisplayName in class AbstractItempublic String getPronoun()
getPronoun in class AbstractProject<MavenModule,MavenBuild>public boolean isNameEditable()
isNameEditable in class Job<MavenModule,MavenBuild>public MavenModuleSet getParent()
getParent in interface ItemgetParent in class AbstractItempublic List<MavenModule> getChildren()
This method returns null if this information is not recorded. This happens for compatibility reason.
public Label getAssignedLabel()
MavenModule uses the workspace of the MavenModuleSet,
so it always needs to be built on the same slave as the parent.
getAssignedLabel in interface SubTaskgetAssignedLabel in class AbstractProject<MavenModule,MavenBuild>public Resource getWorkspaceResource()
AbstractProject.
MavenModule is a part of the parent's workspace.
That is, builds are incompatible with any MavenModule
builds, whereas MavenModule builds are compatible with each other.
getWorkspaceResource in class AbstractProject<MavenModule,MavenBuild>public boolean isFingerprintConfigured()
isFingerprintConfigured in class AbstractProject<MavenModule,MavenBuild>protected void updateTransientActions()
updateTransientActions in class AbstractProject<MavenModule,MavenBuild>protected void buildDependencyGraph(DependencyGraph graph)
buildDependencyGraph in class AbstractProject<MavenModule,MavenBuild>
protected void addTransientActionsFromBuild(MavenBuild build,
List<Action> collection,
Set<Class> added)
addTransientActionsFromBuild in class AbstractMavenProject<MavenModule,MavenBuild>collection - Add the transient actions to this collection.public Maven.MavenInstallation inferMavenInstallation()
inferMavenInstallation in interface Maven.ProjectWithMavenpublic DescribableList<MavenReporter,Descriptor<MavenReporter>> getReporters()
MavenReporters configured for this module.
protected void submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
Descriptor.FormException
submit in class AbstractProject<MavenModule,MavenBuild>IOException
javax.servlet.ServletException
Descriptor.FormException
protected void performDelete()
throws IOException,
InterruptedException
performDelete in class AbstractProject<MavenModule,MavenBuild>IOException
InterruptedExceptionprotected List<MavenReporter> createReporters()
MavenReporters to be used for a build of this project.
public String toString()
toString in class AbstractItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||