Class SOSGet
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.Task
- 
- org.apache.tools.ant.taskdefs.optional.sos.SOS
- 
- org.apache.tools.ant.taskdefs.optional.sos.SOSGet
 
 
 
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tools.ant.taskdefs.optional.sos.SOScommandLine
 - 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 - 
Fields inherited from interface org.apache.tools.ant.taskdefs.optional.sos.SOSCmdCOMMAND_CHECKIN_FILE, COMMAND_CHECKIN_PROJECT, COMMAND_CHECKOUT_FILE, COMMAND_CHECKOUT_PROJECT, COMMAND_GET_FILE, COMMAND_GET_PROJECT, COMMAND_HISTORY, COMMAND_LABEL, COMMAND_SOS_EXE, FLAG_COMMAND, FLAG_COMMENT, FLAG_FILE, FLAG_LABEL, FLAG_NO_CACHE, FLAG_NO_COMPRESSION, FLAG_PASSWORD, FLAG_PROJECT, FLAG_RECURSION, FLAG_SOS_HOME, FLAG_SOS_SERVER, FLAG_USERNAME, FLAG_VERBOSE, FLAG_VERSION, FLAG_VSS_SERVER, FLAG_WORKING_DIR, PROJECT_PREFIX
 
- 
 - 
Constructor SummaryConstructors Constructor Description SOSGet()
 - 
Method SummaryModifier and Type Method Description protected CommandlinebuildCmdLine()Build the command linevoidsetFile(java.lang.String filename)The Filename to act upon.voidsetLabel(java.lang.String label)The labeled version to operate on in SourceSafe.voidsetRecursive(boolean recursive)Flag to recursively apply the action.voidsetVersion(java.lang.String version)Set the version number to get - only works with SOSGet on a file.- 
Methods inherited from class org.apache.tools.ant.taskdefs.optional.sos.SOSexecute, getComment, getFilename, getLabel, getLocalPath, getNoCache, getNoCompress, getOptionalAttributes, getPassword, getProjectPath, getRecursive, getRequiredAttributes, getSosCommand, getSosHome, getSosServerPath, getUsername, getVerbose, getVersion, getVssServerPath, run, setInternalComment, setInternalFilename, setInternalLabel, setInternalRecursive, setInternalVersion, setLocalPath, setNoCache, setNoCompress, setPassword, setProjectPath, setSosCmd, setSosHome, setSosServerPath, setUsername, setVerbose, setVssServerPath
 - 
Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Method Detail- 
setFilepublic 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
 
 - 
setRecursivepublic void setRecursive(boolean recursive) Flag to recursively apply the action. Defaults to false- Parameters:
- recursive- True for recursive operation.
 
 - 
setVersionpublic 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
 
 - 
setLabelpublic void setLabel(java.lang.String label) The labeled version to operate on in SourceSafe.- Parameters:
- label- The new label value
 
 - 
buildCmdLineprotected Commandline buildCmdLine() Build the command lineGetFile 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
 
 
- 
 
-