scm.vss
Class VSSSCM

java.lang.Object
  extended by hudson.scm.SCM
      extended by scm.vss.VSSSCM
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>

public class VSSSCM
extends hudson.scm.SCM

Manages the content from Microsoft Visual Source Safe.

Author:
vara

Nested Class Summary
static class VSSSCM.VSSDescriptor
          VSS descriptor that describes about the VSS SCM.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
VSSSCM(String serverPath, String user, String password, String vssPath, boolean isWritable, boolean isRecursive, boolean useUpdate)
          All the details necessary to get the content from VSS.
 
Method Summary
 hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> ab, hudson.Launcher lnchr, hudson.model.TaskListener tl)
           
 boolean checkout(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, File changelogFile)
          Fetches the content from VSS.
protected  hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project, hudson.Launcher lnchr, hudson.FilePath fp, hudson.model.TaskListener tl, hudson.scm.SCMRevisionState scmrs)
           
 hudson.scm.ChangeLogParser createChangeLogParser()
          Returns the change log parser.
static String escapeForXml(Object object)
          Converts the input in the way that it can be written to the XML.
 hudson.FilePath getModuleRoot(hudson.FilePath workspace, hudson.model.AbstractBuild build)
          Module root same as the workspace root.
 String getPassword()
           
 String getServerPath()
           
 String getUser()
           
 String getVssPaths()
           
 boolean isRecursive()
           
 boolean isUseUpdate()
           
 boolean isWritable()
           
 
Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, all, buildEnvVars, createEmptyChangeLog, getApi, getBrowser, getDescriptor, getEffectiveBrowser, getModuleRoot, getModuleRoots, getModuleRoots, getType, nullify, poll, pollChanges, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VSSSCM

public VSSSCM(String serverPath,
              String user,
              String password,
              String vssPath,
              boolean isWritable,
              boolean isRecursive,
              boolean useUpdate)
All the details necessary to get the content from VSS.

Parameters:
serverPath - Path to srcsafe.ini file.
user - User name.
password - Password.
vssPath - Directory path in the VSS server.
isWritable - Indicates whether to keep the files in writable mode or not.
isRecursive - Indicates whether to get the files in recursive order or not.
Method Detail

getModuleRoot

public hudson.FilePath getModuleRoot(hudson.FilePath workspace,
                                     hudson.model.AbstractBuild build)
Module root same as the workspace root.

Overrides:
getModuleRoot in class hudson.scm.SCM

checkout

public boolean checkout(hudson.model.AbstractBuild build,
                        hudson.Launcher launcher,
                        hudson.FilePath workspace,
                        hudson.model.BuildListener listener,
                        File changelogFile)
                 throws IOException,
                        InterruptedException
Fetches the content from VSS.

Specified by:
checkout in class hudson.scm.SCM
Throws:
IOException
InterruptedException

escapeForXml

public static String escapeForXml(Object object)
Converts the input in the way that it can be written to the XML. Special characters are converted to XML understandable way.

Parameters:
object - The object to be escaped.
Returns:
Escaped string that can be written to XML.

createChangeLogParser

public hudson.scm.ChangeLogParser createChangeLogParser()
Returns the change log parser.

Specified by:
createChangeLogParser in class hudson.scm.SCM

isWritable

public boolean isWritable()
Returns:
The writable flag.

isRecursive

public boolean isRecursive()
Returns:
The recursive flag.

isUseUpdate

public boolean isUseUpdate()
Returns:
The useUpdate flag.

getPassword

public String getPassword()
Returns:
The password.

getServerPath

public String getServerPath()
Returns:
VSS srcsafe.ini path.

getUser

public String getUser()
Returns:
The user name.

getVssPaths

public String getVssPaths()
Returns:
The VSS path.

calcRevisionsFromBuild

public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> ab,
                                                          hudson.Launcher lnchr,
                                                          hudson.model.TaskListener tl)
                                                   throws IOException,
                                                          InterruptedException
Specified by:
calcRevisionsFromBuild in class hudson.scm.SCM
Throws:
IOException
InterruptedException

compareRemoteRevisionWith

protected hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
                                                             hudson.Launcher lnchr,
                                                             hudson.FilePath fp,
                                                             hudson.model.TaskListener tl,
                                                             hudson.scm.SCMRevisionState scmrs)
                                                      throws IOException,
                                                             InterruptedException
Specified by:
compareRemoteRevisionWith in class hudson.scm.SCM
Throws:
IOException
InterruptedException


Copyright © 2004-2011. All Rights Reserved.