hudson.plugins.git
Class GitSCM.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.scm.SCM>
      extended by hudson.scm.SCMDescriptor<GitSCM>
          extended by hudson.plugins.git.GitSCM.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
GitSCM

@Extension
public static final class GitSCM.DescriptorImpl
extends hudson.scm.SCMDescriptor<GitSCM>


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
GitSCM.DescriptorImpl()
           
 
Method Summary
static java.util.List<BranchSpec> createBranches(java.lang.String[] branch)
           
static GitWeb createGitWeb(java.lang.String url)
           
static PreBuildMergeOptions createMergeOptions(java.lang.String doMerge, java.lang.String pMergeRemote, java.lang.String mergeTarget, java.util.List<org.spearce.jgit.transport.RemoteConfig> remoteRepositories)
           
static java.util.List<org.spearce.jgit.transport.RemoteConfig> createRepositoryConfigurations(java.lang.String[] pUrls, java.lang.String[] repoNames, java.lang.String[] refSpecs, java.io.File temp)
           
 hudson.util.FormValidation doGitRemoteNameCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 java.util.List<BuildChooserDescriptor> getBuildChooserDescriptors()
           
 java.lang.String getDisplayName()
           
 java.lang.String getGitExe()
          Deprecated.  
 java.util.List<GitTool> getGitTools()
          Lists available toolinstallations.
 java.lang.String getOldGitExe()
          Old configuration of git executable - exposed so that we can migrate this setting to GitTool without deprecation warnings.
 hudson.scm.SCM newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 
Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, isApplicable, isBrowserReusable, load
 
Methods inherited from class hudson.model.Descriptor
configure, configure, configure, convert, doHelp, find, find, getCheckUrl, getConfigPage, getGlobalConfigPage, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, getViewPage, isInstance, isSubTypeOf, newInstance, 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

GitSCM.DescriptorImpl

public GitSCM.DescriptorImpl()
Method Detail

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.scm.SCM>

getBuildChooserDescriptors

public java.util.List<BuildChooserDescriptor> getBuildChooserDescriptors()

getGitTools

public java.util.List<GitTool> getGitTools()
Lists available toolinstallations.

Returns:
list of available git tools

getGitExe

@Deprecated
public java.lang.String getGitExe()
Deprecated. 

Path to git executable.

See Also:
GitTool

getOldGitExe

public java.lang.String getOldGitExe()
Old configuration of git executable - exposed so that we can migrate this setting to GitTool without deprecation warnings.


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

createRepositoryConfigurations

public static java.util.List<org.spearce.jgit.transport.RemoteConfig> createRepositoryConfigurations(java.lang.String[] pUrls,
                                                                                                     java.lang.String[] repoNames,
                                                                                                     java.lang.String[] refSpecs,
                                                                                                     java.io.File temp)

createBranches

public static java.util.List<BranchSpec> createBranches(java.lang.String[] branch)

createMergeOptions

public static PreBuildMergeOptions createMergeOptions(java.lang.String doMerge,
                                                      java.lang.String pMergeRemote,
                                                      java.lang.String mergeTarget,
                                                      java.util.List<org.spearce.jgit.transport.RemoteConfig> remoteRepositories)
                                               throws hudson.model.Descriptor.FormException
Throws:
hudson.model.Descriptor.FormException

createGitWeb

public static GitWeb createGitWeb(java.lang.String url)

doGitRemoteNameCheck

public hudson.util.FormValidation doGitRemoteNameCheck(org.kohsuke.stapler.StaplerRequest req,
                                                       org.kohsuke.stapler.StaplerResponse rsp)
                                                throws java.io.IOException,
                                                       javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException


Copyright © 2010. All Rights Reserved.