Class MSVSSGET
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.optional.vss.MSVSS
org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET
- All Implemented Interfaces:
Cloneable, MSVSSConstants
Perform Get commands from Microsoft Visual SourceSafe.
-
Nested Class Summary
Nested classes/interfaces inherited from class MSVSS
MSVSS.CurrentModUpdated, MSVSS.WritableFilesModifier and TypeClassDescriptionstatic classExtension of EnumeratedAttribute to hold the values for file time stamp.static classExtension of EnumeratedAttribute to hold the values for writable filess. -
Field Summary
Fields inherited from class ProjectComponent
description, location, projectFields inherited from interface MSVSSConstants
COMMAND_ADD, COMMAND_CHECKIN, COMMAND_CHECKOUT, COMMAND_CP, COMMAND_CREATE, COMMAND_GET, COMMAND_HISTORY, COMMAND_LABEL, FLAG_AUTORESPONSE_DEF, FLAG_AUTORESPONSE_NO, FLAG_AUTORESPONSE_YES, FLAG_BRIEF, FLAG_CODEDIFF, FLAG_COMMENT, FLAG_FILETIME_DEF, FLAG_FILETIME_MODIFIED, FLAG_FILETIME_UPDATED, FLAG_LABEL, FLAG_LOGIN, FLAG_NO_FILE, FLAG_NO_GET, FLAG_OUTPUT, FLAG_OVERRIDE_WORKING_DIR, FLAG_QUIET, FLAG_RECURSION, FLAG_REPLACE_WRITABLE, FLAG_SKIP_WRITABLE, FLAG_USER, FLAG_VERSION, FLAG_VERSION_DATE, FLAG_VERSION_LABEL, FLAG_WRITABLE, PROJECT_PREFIX, SS_EXE, STYLE_BRIEF, STYLE_CODEDIFF, STYLE_DEFAULT, STYLE_NOFILE, TIME_CURRENT, TIME_MODIFIED, TIME_UPDATED, VALUE_FROMDATE, VALUE_FROMLABEL, VALUE_NO, VALUE_YES, WRITABLE_FAIL, WRITABLE_REPLACE, WRITABLE_SKIPModifier and TypeFieldDescriptionstatic final StringThe 'Add' commandstatic final StringThe 'Checkin' commandstatic final StringThe 'Checkout' commandstatic final StringThe 'CP' commandstatic final StringThe 'Create' commandstatic final StringThe 'Get' commandstatic final StringThe 'History' commandstatic final StringThe 'Label' commandstatic final String-I- flagstatic final String-I-N flagstatic final String-I-Y flagstatic final String-B flagstatic final String-D flagstatic final String-C flagstatic final String-GTC flagstatic final String-GTM flagstatic final String-GTU flagstatic final String-L flagstatic final String-Y flagstatic final String-F- flagstatic final String-G- flagstatic final String-O flagstatic final String-GL flagstatic final String-O- flagstatic final String-R flagstatic final String-GWR flagstatic final String-GWS flagstatic final String-U flagstatic final String-V flagstatic final String-Vd flagstatic final String-VL flagstatic final String-W flagstatic final StringDollar Sigh to prefix the project pathstatic final StringConstant for the thing to executestatic final StringThe brief style flagstatic final StringThe codediff style flagstatic final StringThe default style flagstatic final StringThe nofile style flagstatic final StringThe text for current (default) timestampstatic final StringThe text for modified timestampstatic final StringThe text for updated timestampstatic final String~d flagstatic final String~L flagstatic final String-N flagstatic final String-Y flagstatic final StringThe text for failing on writable filesstatic final StringThe text for replacing writable filesstatic final StringThe text for skipping writable files -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAutoresponse(String response) Autoresponse behaviour.voidDate to get.voidsetFileTimeStamp(MSVSS.CurrentModUpdated timestamp) Date and time stamp given to the local copy.voidLabel to get.voidsetLocalpath(Path localPath) Override the project working directory.final voidsetQuiet(boolean quiet) Enable quiet mode.final voidsetRecursive(boolean recursive) Get files recursively.voidsetVersion(String version) Version to get.final voidsetWritable(boolean writable) Unset the READ-ONLY flag on files retrieved from VSS.voidAction taken when local files are writable.Methods inherited from class MSVSS
execute, getAutoresponse, getComment, getFileTimeStamp, getGetLocalCopy, getLabel, getLocalpath, getLogin, getOutput, getQuiet, getRecursive, getSSCommand, getStyle, getUser, getVersion, getVersionDate, getVersionDateLabel, getVersionLabel, getVsspath, getWritable, getWritableFiles, setFailOnError, setInternalAutoResponse, setInternalComment, setInternalDate, setInternalDateFormat, setInternalFailOnError, setInternalFileTimeStamp, setInternalFromDate, setInternalFromLabel, setInternalGetLocalCopy, setInternalLabel, setInternalLocalPath, setInternalNumDays, setInternalOutputFilename, setInternalQuiet, setInternalRecursive, setInternalStyle, setInternalToDate, setInternalToLabel, setInternalUser, setInternalVersion, setInternalWritable, setInternalWritableFiles, setLogin, setServerpath, setSsdir, setVsspathModifier and TypeMethodDescriptionvoidexecute()Executes the task.protected StringGets the auto response string.protected StringGets the comment string.Gets the value set for the FileTimeStamp.protected StringBuilds and returns the -G- flag if required.protected StringgetLabel()Gets the label string.protected StringGets the localpath string.protected StringgetLogin()Gets the login string.protected StringGets the output file string.protected StringgetQuiet()Gets the quiet string.protected StringGets the recursive string.protected StringGets the sscommand string.protected StringgetStyle()Gets the style string.protected StringgetUser()Gets the user string.protected StringGets the version string.protected StringGets the Version date string.protected StringGets the version string.protected StringGets the version string.protected StringGets the vssserverpath string.protected StringGets the writable string.Gets the value to determine the behaviour when encountering writable files.final voidsetFailOnError(boolean failOnError) Indicates if the build should fail if the Sourcesafe command does.protected voidsetInternalAutoResponse(String autoResponse) Set the auto response attribute.protected voidsetInternalComment(String comment) Set the internal comment attribute.protected voidsetInternalDate(String date) Set the date attribute.protected voidsetInternalDateFormat(DateFormat dateFormat) Set the date format attribute.protected voidsetInternalFailOnError(boolean failOnError) Set the failOnError attribute.protected voidsetInternalFileTimeStamp(MSVSS.CurrentModUpdated timestamp) Set the timestamp attribute.protected voidsetInternalFromDate(String fromDate) Set the from date attribute.protected voidsetInternalFromLabel(String fromLabel) Set the from label attribute.protected voidsetInternalGetLocalCopy(boolean getLocalCopy) Set the getLocalCopy attribute.protected voidsetInternalLabel(String label) Set the label attribute.protected voidsetInternalLocalPath(String localPath) Set the local path comment attribute.protected voidsetInternalNumDays(int numDays) Set the num days attribute.protected voidsetInternalOutputFilename(String outputFileName) Set the outputFileName comment attribute.protected voidsetInternalQuiet(boolean quiet) Set the quiet attribute.protected voidsetInternalRecursive(boolean recursive) Set the recursive attribute.protected voidsetInternalStyle(String style) Set the style attribute.protected voidsetInternalToDate(String toDate) Set the to date attribute.protected voidsetInternalToLabel(String toLabel) Set the to label attribute.protected voidsetInternalUser(String user) Set the user attribute.protected voidsetInternalVersion(String version) Set the version attribute.protected voidsetInternalWritable(boolean writable) Set the writable attribute.protected voidsetInternalWritableFiles(MSVSS.WritableFiles writableFiles) Set the writableFiles attribute.final voidLogin to use when accessing VSS, formatted as "username,password".final voidsetServerpath(String serverPath) Directory wheresrssafe.iniresides.final voidDirectory wheress.exeresides.final voidsetVsspath(String vssPath) SourceSafe path which specifies the project/file(s) you wish to perform the action on.Methods inherited from class Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeModifier and TypeMethodDescriptionfinal voidbindToOwner(Task owner) Bind a task to another; use this when configuring a newly created task to do work on behalf of another.Returns the container target of this task.Returns the wrapper used for runtime configuration.Returns the name to use in logging messages.Return the type of task.protected RuntimeConfigurableReturn the runtime configurable structure for this task.protected voidhandleErrorFlush(String output) Handles an error line by logging it with the WARN priority.protected voidhandleErrorOutput(String output) Handles an error output by logging it with the WARN priority.protected voidhandleFlush(String output) Handles output by logging it with the INFO priority.protected inthandleInput(byte[] buffer, int offset, int length) Handle an input request by this task.protected voidhandleOutput(String output) Handles output by logging it with the INFO priority.voidinit()Called by the project to let the task initialize properly.protected final booleanHas this task been marked invalid?voidLogs a message with the default (INFO) priority.voidLogs a message with the given priority.voidLogs a message with the given priority.voidLogs a message with the given priority.voidConfigures this task - if it hasn't been done already.final voidperform()Performs this task if it's still valid, or gets a replacement version and performs that otherwise.voidForce the task to be reconfigured from its RuntimeConfigurable.voidsetOwningTarget(Target target) Sets the target container of this task.voidSets the wrapper to be used for runtime configuration.voidsetTaskName(String name) Sets the name to use in logging messages.voidsetTaskType(String type) Sets the name with which the task has been invoked.Methods inherited from class ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectModifier and TypeMethodDescriptionclone()Returns the description of the current action.Returns the file/location where this task was defined.Returns the project to which this component belongs.voidsetDescription(String desc) Sets a description of the current action.voidsetLocation(Location location) Sets the file/location where this task was defined.voidsetProject(Project project) Sets the project object of this component.
-
Constructor Details
-
MSVSSGET
public MSVSSGET()
-
-
Method Details
-
setLocalpath
Override the project working directory.- Parameters:
localPath- The path on disk.
-
setRecursive
public final void setRecursive(boolean recursive) Get files recursively. Defaults to false.- Parameters:
recursive- The boolean value for recursive.
-
setQuiet
public final void setQuiet(boolean quiet) Enable quiet mode. Defaults to false.- Parameters:
quiet- The boolean value for quiet.
-
setWritable
public final void setWritable(boolean writable) Unset the READ-ONLY flag on files retrieved from VSS. Defaults to false.- Parameters:
writable- The boolean value for writable.
-
setVersion
-
setDate
-
setLabel
-
setAutoresponse
Autoresponse behaviour. Valid options are Y and N.- Parameters:
response- The auto response value.
-
setFileTimeStamp
Date and time stamp given to the local copy. Defaults tocurrent.- Parameters:
timestamp- The file time stamping behaviour.
-
setWritableFiles
Action taken when local files are writable. Defaults tofail.Due to ss.exe returning with an exit code of '100' for both errors and when a file has been skipped,
failonerroris set to false when using theskipoption.- Parameters:
files- The action to take.
-