public abstract class SOS extends Task implements SOSCmd
Modifier and Type | Field and Description |
---|---|
protected Commandline |
commandLine
Commandline to be executed.
|
COMMAND_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 and Description |
---|
SOS() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute the created command line.
|
protected String |
getComment()
Get the comment
|
protected String |
getFilename()
Get the filename to be acted upon.
|
protected String |
getLabel()
Get the label
|
protected String |
getLocalPath()
Builds and returns the working directory.
|
protected String |
getNoCache()
Get the NoCache flag.
|
protected String |
getNoCompress()
Get the NoCompress flag.
|
protected void |
getOptionalAttributes()
Adds the optional attributes to the command line.
|
protected String |
getPassword()
Get the password
|
protected String |
getProjectPath()
Get the project path
|
protected String |
getRecursive()
Get the 'recursive' Flag.
|
protected void |
getRequiredAttributes()
Sets the executable and add the required attributes to the command line.
|
protected String |
getSosCommand()
Get the executable to run.
|
protected String |
getSosHome()
Get the SOS home directory.
|
protected String |
getSosServerPath()
Get the SOS serve path.
|
protected String |
getUsername()
Get the username
|
protected String |
getVerbose()
Get the 'verbose' Flag.
|
protected String |
getVersion()
Get the version
|
protected String |
getVssServerPath()
Get the VSS server path
|
protected int |
run(Commandline cmd)
Execute the created command line.
|
protected void |
setInternalComment(String text)
Set the comment text.
|
protected void |
setInternalFilename(String file)
Set the file name.
|
protected void |
setInternalLabel(String text)
Set the label.
|
protected void |
setInternalRecursive(boolean recurse)
Set the recursive flag.
|
protected void |
setInternalVersion(String text)
Set the version.
|
void |
setLocalPath(Path path)
Override the working directory and get to the specified path.
|
void |
setNoCache(boolean nocache)
Flag to disable the cache when set.
|
void |
setNoCompress(boolean nocompress)
Flag to disable compression when set.
|
void |
setPassword(String password)
The SourceSafe password.
|
void |
setProjectPath(String projectpath)
The SourceSafe project path.
|
void |
setSosCmd(String dir)
The directory where soscmd(.exe) is located.
|
void |
setSosHome(String sosHome)
Path to the SourceOffSite home directory.
|
void |
setSosServerPath(String sosServerPath)
The address and port of SourceOffSite Server,
for example 192.168.0.1:8888.
|
void |
setUsername(String username)
The SourceSafe username.
|
void |
setVerbose(boolean verbose)
Enable verbose output.
|
void |
setVssServerPath(String vssServerPath)
The path to the location of the ss.ini file.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
protected Commandline commandLine
public void execute() throws BuildException
execute
in class Task
BuildException
- on error.protected String getComment()
protected String getFilename()
protected String getLabel()
protected String getLocalPath()
The localpath is created if it didn't exist.
protected String getNoCache()
protected String getNoCompress()
protected void getOptionalAttributes()
protected String getPassword()
protected String getProjectPath()
protected String getRecursive()
protected void getRequiredAttributes()
protected String getSosCommand()
protected String getSosHome()
protected String getSosServerPath()
protected String getUsername()
protected String getVerbose()
protected String getVersion()
protected String getVssServerPath()
protected int run(Commandline cmd)
cmd
- The command line to run.BuildException
protected void setInternalComment(String text)
text
- the comment text to use.protected void setInternalFilename(String file)
file
- the filename to use.protected void setInternalLabel(String text)
text
- the label to use.protected void setInternalRecursive(boolean recurse)
recurse
- if true use the recursive flag on the command line.protected void setInternalVersion(String text)
text
- the version to use.public final void setLocalPath(Path path)
path
- The new localPath value.public final void setNoCache(boolean nocache)
nocache
- True to disable caching.public final void setNoCompress(boolean nocompress)
nocompress
- True to disable compression.public final void setPassword(String password)
password
- The new password value.public final void setProjectPath(String projectpath)
projectpath
- The new projectpath value.public final void setSosCmd(String dir)
dir
- The new sosCmd value.public final void setSosHome(String sosHome)
sosHome
- The new sosHome value.public final void setSosServerPath(String sosServerPath)
sosServerPath
- The new sosServerPath value.public final void setUsername(String username)
username
- The new username value.public void setVerbose(boolean verbose)
verbose
- True for verbose output.public final void setVssServerPath(String vssServerPath)
vssServerPath
- The new vssServerPath value.