Class SOSGet

  • All Implemented Interfaces:
    java.lang.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 Detail

      • SOSGet

        public SOSGet()
    • Method Detail

      • setFile

        public final void setFile​(java.lang.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​(java.lang.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​(java.lang.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