hudson.scm
Class CVSSCM.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.scm.SCM>
      extended by hudson.scm.SCMDescriptor<CVSSCM>
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
Field Summary
 
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
 
Constructor Summary
CVSSCM.DescriptorImpl()
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject o)
           
protected  void convert(Map<String,Object> oldPropertyBag)
           
 hudson.util.FormValidation doCheckBranch(String value)
          Checks the correctness of the branch name.
 hudson.util.FormValidation doCheckCvsExe(String value)
          Checks if cvs executable exists.
 hudson.util.FormValidation doCheckCvspassFile(String value)
           
 hudson.util.FormValidation doCheckCvsRoot(String value)
          Checks the entry to the CVSROOT field.
 hudson.util.FormValidation doCheckExcludeRegions(String value)
          Validates the excludeRegions Regex
 void doPostPassword(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Runs cvs login command.
 void doVersion(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Displays "cvs --version" for trouble shooting.
 Set<String> getAllCvsRoots()
          Returns all CVSROOT strings used in the current Hudson installation.
protected  Map<String,hudson.scm.CVSSCM.DescriptorImpl.RepositoryBrowser> getBrowsers()
           
 String getCvsExe()
           
 String getCvsExeOrDefault()
           
 String getCvspassFile()
           
 String getDisplayName()
           
 boolean isBrowserReusable(CVSSCM x, CVSSCM y)
           
 boolean isNoCompression()
           
 hudson.scm.SCM newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 void setCvsExe(String value)
           
 void setCvspassFile(String value)
           
 
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, 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
 

Constructor Detail

CVSSCM.DescriptorImpl

public CVSSCM.DescriptorImpl()
Method Detail

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()

getBrowsers

protected Map<String,hudson.scm.CVSSCM.DescriptorImpl.RepositoryBrowser> getBrowsers()

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 Hudson 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 Hudson. All Rights Reserved.