|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.Exec | +--org.apache.tools.ant.taskdefs.optional.vss.MSVSS | +--org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET
Task to perform GET commands to Microsoft Visual Source Safe.
The following attributes are interpretted:
Attribute | Values | Required |
---|---|---|
login | username,password | No |
vsspath | SourceSafe path | Yes |
localpath | Override the working directory and get to the specified path | No |
writable | true or false | No |
recursive | true or false | No |
version | a version number to get | No |
date | a date stamp to get at | No |
label | a label to get for | No |
Note that only one of version, date or label should be specified
Fields inherited from class org.apache.tools.ant.taskdefs.optional.vss.MSVSS |
COMMAND_CHECKOUT, COMMAND_GET, COMMAND_HISTORY, COMMAND_LABEL, FLAG_AUTORESPONSE, FLAG_LOGIN, FLAG_OVERRIDE_WORKING_DIR, FLAG_RECURSION, FLAG_VERSION, FLAG_VERSION_DATE, FLAG_VERSION_LABEL, FLAG_WRITABLE, PROJECT_PREFIX, VALUE_NO, VALUE_YES |
Fields inherited from class org.apache.tools.ant.taskdefs.Exec |
fos |
Fields inherited from class org.apache.tools.ant.Task |
description, location, project, target, taskName, taskType |
Constructor Summary | |
MSVSSGET()
|
Method Summary | |
void |
execute()
Executes the task. |
java.lang.String |
getLocalpathCommand()
Builds and returns the -GL flag command if required The localpath is created if it didn't exist |
java.lang.String |
getRecursiveCommand()
|
java.lang.String |
getVersionCommand()
Simple order of priority. |
java.lang.String |
getWritableCommand()
|
void |
setDate(java.lang.String date)
Set the stored date string Note we assume that if the supplied string has the value "null" that something went wrong and that the string value got populated from a null object. |
void |
setLabel(java.lang.String label)
Set the labeled version to operate on in SourceSafe Note we assume that if the supplied string has the value "null" that something went wrong and that the string value got populated from a null object. |
void |
setLocalpath(java.lang.String localPath)
Set the local path. |
void |
setRecursive(java.lang.String recursive)
Set behaviour recursive or non-recursive |
void |
setVersion(java.lang.String version)
Set the stored version string Note we assume that if the supplied string has the value "null" that something went wrong and that the string value got populated from a null object. |
void |
setWritable(java.lang.String argWritable)
Set behaviour, used in get command to make files that are 'got' writable |
Methods inherited from class org.apache.tools.ant.taskdefs.optional.vss.MSVSS |
getLoginCommand, getSSCommand, getVsspath, setLogin, setSsdir, setVsspath |
Methods inherited from class org.apache.tools.ant.taskdefs.Exec |
logFlush, outputLog, run, setCommand, setDir, setFailonerror, setOs, setOutput |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getProject, getTaskName, init, log, log, setDescription, setLocation, setOwningTarget, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MSVSSGET()
Method Detail |
public void execute() throws BuildException
Builds a command line to execute ss and then calls Exec's run method to execute the command line.
execute
in class Exec
org.apache.tools.ant.Task
BuildException
- if someting goes wrong with the buildpublic void setLocalpath(java.lang.String localPath)
public java.lang.String getLocalpathCommand()
The localpath is created if it didn't exist
public void setRecursive(java.lang.String recursive)
public java.lang.String getRecursiveCommand()
public final void setWritable(java.lang.String argWritable)
public java.lang.String getWritableCommand()
public void setVersion(java.lang.String version)
Note we assume that if the supplied string has the value "null" that something went wrong and that the string value got populated from a null object. This happens if a ant variable is used e.g. version="${ver_server}" when ver_server has not been defined to ant!
public void setDate(java.lang.String date)
Note we assume that if the supplied string has the value "null" that something went wrong and that the string value got populated from a null object. This happens if a ant variable is used e.g. date="${date}" when date has not been defined to ant!
public void setLabel(java.lang.String label)
Note we assume that if the supplied string has the value "null" that something went wrong and that the string value got populated from a null object. This happens if a ant variable is used e.g. label="${label_server}" when label_server has not been defined to ant!
public java.lang.String getVersionCommand()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |