Package hudson.tasks
Class Maven.MavenInstallation.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<ToolInstallation>
-
- hudson.tools.ToolDescriptor<Maven.MavenInstallation>
-
- hudson.tasks.Maven.MavenInstallation.DescriptorImpl
-
- Enclosing class:
- Maven.MavenInstallation
@Extension @Symbol("maven") public static class Maven.MavenInstallation.DescriptorImpl extends ToolDescriptor<Maven.MavenInstallation>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FormValidationcheckHomeDirectory(File value)Checks if the MAVEN_HOME is valid.List<? extends ToolInstaller>getDefaultInstallers()Optional list of installers to be configured by default for new tools of this type.StringgetDisplayName()Human readable name of this kind of configurable object.Maven.MavenInstallation[]getInstallations()Configured instances ofToolInstallations.voidsetInstallations(Maven.MavenInstallation... installations)OverwritesToolInstallations.-
Methods inherited from class hudson.tools.ToolDescriptor
configure, doCheckHome, doCheckName, getCategory, getDefaultProperties, getPropertyDescriptors
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getDisplayName
@NonNull public String getDisplayName()
Description copied from class:DescriptorHuman readable name of this kind of configurable object. Should be overridden for most descriptors, if the display name is visible somehow. As a fallback it usesClass.getSimpleName()onDescriptor.clazz, so for exampleMyThingfromsome.pkg.MyThing.DescriptorImpl. Historically some implementations returned null as a way of hiding the descriptor from the UI, but this is generally managed by an explicit method such asisEnabledorisApplicable.- Overrides:
getDisplayNamein classDescriptor<ToolInstallation>
-
getDefaultInstallers
public List<? extends ToolInstaller> getDefaultInstallers()
Description copied from class:ToolDescriptorOptional list of installers to be configured by default for new tools of this type. If there are popular versions of the tool available using generic installation techniques, they can be returned here for the user's convenience.- Overrides:
getDefaultInstallersin classToolDescriptor<Maven.MavenInstallation>
-
getInstallations
public Maven.MavenInstallation[] getInstallations()
Description copied from class:ToolDescriptorConfigured instances ofToolInstallations.- Overrides:
getInstallationsin classToolDescriptor<Maven.MavenInstallation>- Returns:
- read-only list of installations; can be empty but never null.
-
setInstallations
public void setInstallations(Maven.MavenInstallation... installations)
Description copied from class:ToolDescriptorOverwritesToolInstallations.- Overrides:
setInstallationsin classToolDescriptor<Maven.MavenInstallation>- Parameters:
installations- list of installations; can be empty but never null.
-
checkHomeDirectory
protected FormValidation checkHomeDirectory(File value)
Checks if the MAVEN_HOME is valid.- Overrides:
checkHomeDirectoryin classToolDescriptor<Maven.MavenInstallation>- Parameters:
value- a possible value forToolInstallation.getHome(), known to already exist on the controller TODO(terminology) or is it built-in?- Returns:
- by default,
FormValidation.ok()
-
-