org.apache.tools.ant.taskdefs.optional.sos

Class SOSGet

public class SOSGet extends SOS

Retrieves a read-only copy of the specified project or file from Visual SourceSafe via a SourceOffSite server.

UNKNOWN: name="sosget" category="scm"

Method Summary
protected CommandlinebuildCmdLine()
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
voidsetFile(String filename)
The Filename to act upon.
voidsetLabel(String label)
The labeled version to operate on in SourceSafe.
voidsetRecursive(boolean recursive)
Flag to recursively apply the action.
voidsetVersion(String version)
Set the version number to get - only works with SOSGet on a file.

Method Detail

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

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

setLabel

public void setLabel(String label)
The labeled version to operate on in SourceSafe.

Parameters: label The new label 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

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.