All Implemented Interfaces:
Cloneable, SOSCmd

public class SOSGet extends SOS
Retrieves a read-only copy of the specified project or file from Visual SourceSafe via a SourceOffSite server.
  • Constructor Details

    • SOSGet

      public SOSGet()
  • Method Details

    • setFile

      public final void setFile(String filename)
      The Filename to act upon. If no file is specified then the tasks act upon the project.
      Parameters:
      filename - The new file value
    • setRecursive

      public void setRecursive(boolean recursive)
      Flag to recursively apply the action. Defaults to false
      Parameters:
      recursive - True for recursive operation.
    • setVersion

      public void setVersion(String version)
      Set the version number to get - only works with SOSGet on a file.
      Parameters:
      version - The new version value
    • setLabel

      public void setLabel(String label)
      The labeled version to operate on in SourceSafe.
      Parameters:
      label - The new label value
    • buildCmdLine

      protected Commandline buildCmdLine()
      Build the command line

      GetFile required parameters: -server -name -password -database -project -file
      GetFile optional parameters: -workdir -revision -verbose -nocache -nocompression -soshome
      GetProject required parameters: -server -name -password -database -project
      GetProject optional parameters: -label -workdir -recursive -verbose -nocache -nocompression -soshome

      Returns:
      Commandline the generated command to be executed