hudson.scm
Class CVSSCM.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<hudson.scm.SCM>
hudson.scm.SCMDescriptor<CVSSCM>
hudson.scm.CVSSCM.DescriptorImpl
- All Implemented Interfaces:
- hudson.model.ModelObject, hudson.model.Saveable
- Enclosing class:
- CVSSCM
@Extension
public static final class CVSSCM.DescriptorImpl
- extends hudson.scm.SCMDescriptor<CVSSCM>
- implements hudson.model.ModelObject
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType |
| Fields inherited from class hudson.scm.SCMDescriptor |
generation, repositoryBrowser |
| Fields inherited from class hudson.model.Descriptor |
clazz |
| Fields inherited from interface hudson.model.Saveable |
NOOP |
| Methods inherited from class hudson.scm.SCMDescriptor |
getBrowserDescriptors, isApplicable, load |
| Methods inherited from class hudson.model.Descriptor |
calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CVSSCM.DescriptorImpl
public CVSSCM.DescriptorImpl()
convert
protected void convert(Map<String,Object> oldPropertyBag)
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName in interface hudson.model.ModelObject- Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.scm.SCM>
newInstance
public hudson.scm.SCM newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
- Overrides:
newInstance in class hudson.model.Descriptor<hudson.scm.SCM>
- Throws:
hudson.model.Descriptor.FormException
getCvspassFile
public String getCvspassFile()
getCvsExe
public String getCvsExe()
setCvsExe
public void setCvsExe(String value)
getCvsExeOrDefault
public String getCvsExeOrDefault()
setCvspassFile
public void setCvspassFile(String value)
isNoCompression
public boolean isNoCompression()
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject o)
- Overrides:
configure in class hudson.model.Descriptor<hudson.scm.SCM>
isBrowserReusable
public boolean isBrowserReusable(CVSSCM x,
CVSSCM y)
- Overrides:
isBrowserReusable in class hudson.scm.SCMDescriptor<CVSSCM>
getAllCvsRoots
public Set<String> getAllCvsRoots()
- Returns all
CVSROOT strings used in the current Jenkins installation.
doCheckCvspassFile
public hudson.util.FormValidation doCheckCvspassFile(@QueryParameter
String value)
doCheckCvsExe
public hudson.util.FormValidation doCheckCvsExe(@QueryParameter
String value)
- Checks if cvs executable exists.
doVersion
public void doVersion(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
InterruptedException
- Displays "cvs --version" for trouble shooting.
- Throws:
IOException
javax.servlet.ServletException
InterruptedException
doCheckBranch
public hudson.util.FormValidation doCheckBranch(@QueryParameter
String value)
- Checks the correctness of the branch name.
doCheckCvsRoot
public hudson.util.FormValidation doCheckCvsRoot(@QueryParameter
String value)
throws IOException
- Checks the entry to the CVSROOT field.
Also checks if .cvspass file contains the entry for this.
- Throws:
IOException
doCheckExcludeRegions
public hudson.util.FormValidation doCheckExcludeRegions(@QueryParameter
String value)
- Validates the excludeRegions Regex
doPostPassword
public void doPostPassword(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
InterruptedException
- Runs cvs login command.
TODO: this apparently doesn't work. Probably related to the fact that
cvs does some tty magic to disable echo back or whatever.
- Throws:
IOException
InterruptedException
Copyright © 2004-2011. All Rights Reserved.