Package hudson.plugins.nant
Class NantBuilder.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<Builder>
-
- hudson.plugins.nant.NantBuilder.DescriptorImpl
-
- Enclosing class:
- NantBuilder
public static final class NantBuilder.DescriptorImpl extends BuildStepDescriptor<Builder>
Descriptor forNantBuilder. Used as a singleton. The class is marked as public so that it can be accessed from views.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAMETERNAME_PATH_TO_NANTTo persist global configuration information, simply store it in a field and call save().-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)protected voidconvert(Map<String,Object> oldPropertyBag)FormValidationdoCheckNantHome(String value)Checks if the NANT_HOME is valid.StringgetDisplayName()This human readable name is used in the configuration screen.NantBuilder.NantInstallation[]getInstallations()booleanisApplicable(Class<? extends AbstractProject> aClass)-
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Field Detail
-
PARAMETERNAME_PATH_TO_NANT
public static String PARAMETERNAME_PATH_TO_NANT
To persist global configuration information, simply store it in a field and call save().If you don't want fields to be persisted, use
transient.
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
This human readable name is used in the configuration screen.- Overrides:
getDisplayNamein classDescriptor<Builder>
-
getInstallations
public NantBuilder.NantInstallation[] getInstallations()
-
isApplicable
public boolean isApplicable(Class<? extends AbstractProject> aClass)
- Specified by:
isApplicablein classBuildStepDescriptor<Builder>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException- Overrides:
configurein classDescriptor<Builder>- Throws:
Descriptor.FormException
-
doCheckNantHome
public FormValidation doCheckNantHome(@QueryParameter String value)
Checks if the NANT_HOME is valid.- Parameters:
value- The value of the NANT_HOME field supplied by the user
-
-