Class SOSLabel
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.SOSLabel
Labels Visual SourceSafe files via a SourceOffSite server.
-
Field Summary
Fields inherited from class SOS
commandLineFields inherited from class ProjectComponent
description, location, projectFields inherited from interface SOSCmd
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_PREFIXModifier and TypeFieldDescriptionstatic final StringThe checkin file commandstatic final StringThe checkin project commandstatic final StringThe checkout file commandstatic final StringThe checkout project commandstatic final StringThe get file commandstatic final StringThe get project commandstatic final StringThe get history commandstatic final StringThe add label commandstatic final StringThe sos executablestatic final StringThe command optionstatic final StringThe log optionstatic final StringThe file optionstatic final StringThe label optionstatic final StringThe no cache optionstatic final StringThe no compression optionstatic final StringThe password optionstatic final StringThe project optionstatic final StringThe recursive optionstatic final StringThe sos home optionstatic final StringThe server optionstatic final StringThe username optionstatic final StringThe verbose optionstatic final StringThe revision optionstatic final StringThe database (vss server) optionstatic final StringThe workdir optionstatic final StringThe project prefix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommandlineBuild the command linevoidsetComment(String comment) The comment to apply to all files being labelled.voidThe label to apply the the files in SourceSafe.voidsetVersion(String version) The version number to label.Methods inherited from class SOS
execute, 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, setVssServerPathModifier and TypeMethodDescriptionvoidexecute()Execute the created command line.protected StringGet the commentprotected StringGet the filename to be acted upon.protected StringgetLabel()Get the labelprotected StringBuilds and returns the working directory.protected StringGet the NoCache flag.protected StringGet the NoCompress flag.protected voidAdds the optional attributes to the command line.protected StringGet the passwordprotected StringGet the project pathprotected StringGet the 'recursive' Flag.protected voidSets the executable and add the required attributes to the command line.protected StringGet the executable to run.protected StringGet the SOS home directory.protected StringGet the SOS serve path.protected StringGet the usernameprotected StringGet the 'verbose' Flag.protected StringGet the versionprotected StringGet the VSS server pathprotected intrun(Commandline cmd) Execute the created command line.protected voidsetInternalComment(String text) Set the comment text.protected voidsetInternalFilename(String file) Set the file name.protected voidsetInternalLabel(String text) Set the label.protected voidsetInternalRecursive(boolean recurse) Set the recursive flag.protected voidsetInternalVersion(String text) Set the version.final voidsetLocalPath(Path path) Override the working directory and get to the specified path.final voidsetNoCache(boolean nocache) Flag to disable the cache when set.final voidsetNoCompress(boolean nocompress) Flag to disable compression when set.final voidsetPassword(String password) The SourceSafe password.final voidsetProjectPath(String projectpath) The SourceSafe project path.final voidThe directory where soscmd(.exe) is located.final voidsetSosHome(String sosHome) Path to the SourceOffSite home directory.final voidsetSosServerPath(String sosServerPath) The address and port of SourceOffSite Server, for example 192.168.0.1:8888.final voidsetUsername(String username) The SourceSafe username.voidsetVerbose(boolean verbose) Enable verbose output.final voidsetVssServerPath(String vssServerPath) The path to the location of the ss.ini file.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
-
SOSLabel
public SOSLabel()
-
-
Method Details
-
setVersion
The version number to label.- Parameters:
version- The new version value
-
setLabel
The label to apply the the files in SourceSafe.- Parameters:
label- The new label value
-
setComment
The comment to apply to all files being labelled.- Parameters:
comment- The new comment value
-
buildCmdLine
Build the command lineAddLabel required parameters: -server -name -password -database -project -label
AddLabel optional parameters: -verbose -comment- Returns:
- Commandline the generated command to be executed
-