Class VssParameterContext
java.lang.Object
org.apache.maven.scm.provider.vss.commands.VssParameterContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private String
private String
private DateFormat
Date format for Historyprivate String
From dateprivate String
private boolean
Get local copy for checkout defaults to trueprivate String
private String
private int
Number of days offset for Historyprivate String
private boolean
private boolean
private String
private String
private String
private String
To dateprivate String
private String
private String
private String
private String
private boolean
private String
Behaviour for writable files -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
Calculate the start date for version comparison.Gets the auto response string.Gets the comment string.Gets the value set for the FileTimeStamp.Builds and returns the -G- flag if required.static VssParameterContext
getInstance
(Object obj) getLabel()
Gets the label string.Gets the localpath string.getLogin()
Gets the login string.Gets the output file string.getQuiet()
Gets the quiet string.Gets the recursive string.private String
Return at most the 30 first chars of the label, logging a warning message about the truncationGets the sscommand string.getStyle()
Gets the style string.getUser()
Gets the user string.Gets the version string.Gets the Version date string.Gets the version string.Gets the writable string.Gets the value to determine the behaviour when encountering writable files.
-
Field Details
-
vssPath
-
autoResponse
-
ssDir
-
vssLogin
-
comment
-
user
-
fromLabel
-
toLabel
-
quiet
private boolean quiet -
recursive
private boolean recursive -
writable
private boolean writable -
label
-
style
-
version
-
date
-
localPath
-
timestamp
-
writableFiles
Behaviour for writable files -
fromDate
From date -
toDate
To date -
numDays
private int numDaysNumber of days offset for History -
getLocalCopy
private boolean getLocalCopyGet local copy for checkout defaults to true -
dateFormat
Date format for History -
outputFileName
-
-
Constructor Details
-
VssParameterContext
-
-
Method Details
-
getInstance
-
getGetLocalCopy
Builds and returns the -G- flag if required.- Returns:
- An empty string if get local copy is true.
-
calcDate
Calculate the start date for version comparison.Calculate the date numDay days earlier than startdate.
- Parameters:
startDate
- The start date.daysToAdd
- The number of days to add.- Returns:
- The calculated date.
- Throws:
ParseException
-
getFileTimeStamp
Gets the value set for the FileTimeStamp. if it equals "current" then we return -GTC if it equals "modified" then we return -GTM if it equals "updated" then we return -GTU otherwise we return -GTC- Returns:
- The default file time flag, if not set.
-
getLocalpath
Gets the localpath string. "-GLc:\source"The localpath is created if it didn't exist.
- Returns:
- An empty string if localpath is not set.
- Throws:
ScmException
-
getLabel
Gets the label string. "-Lbuild1" Max label length is 32 chars- Returns:
- An empty string if label is not set.
-
getVersionDateLabel
Gets the version string. Returns the first specified of version "-V1.0", date "-Vd01.01.01", label "-Vlbuild1".- Returns:
- An empty string if a version, date and label are not set.
-
getVersion
Gets the version string.- Returns:
- An empty string if a version is not set.
-
getShortLabel
Return at most the 30 first chars of the label, logging a warning message about the truncation- Returns:
- at most the 30 first chars of the label
-
getStyle
Gets the style string. "-Lbuild1"- Returns:
- An empty string if label is not set.
-
getRecursive
Gets the recursive string. "-R"- Returns:
- An empty string if recursive is not set or is false.
-
getWritable
Gets the writable string. "-W"- Returns:
- An empty string if writable is not set or is false.
-
getQuiet
Gets the quiet string. -O-- Returns:
- An empty string if quiet is not set or is false.
-
getVersionLabel
-
getUser
Gets the user string. "-Uusername"- Returns:
- An empty string if user is not set.
-
getComment
Gets the comment string. "-Ccomment text"- Returns:
- A comment of "-" if comment is not set.
-
getLogin
Gets the login string. This can be user and password, "-Yuser,password" or just user "-Yuser".- Returns:
- An empty string if login is not set.
-
getAutoresponse
Gets the auto response string. This can be Y "-I-Y" or N "-I-N".- Returns:
- The default value "-I-" if autoresponse is not set.
-
getSSCommand
Gets the sscommand string. "ss" or "c:\path\to\ss"- Returns:
- The path to ss.exe or just ss if sscommand is not set.
-
getVssPath
-
getVersionDate
Gets the Version date string.- Returns:
- An empty string if neither Todate or from date are set.
- Throws:
ScmException
-
getOutput
Gets the output file string. "-Ooutput.file"- Returns:
- An empty string if user is not set.
-
getWritableFiles
Gets the value to determine the behaviour when encountering writable files.- Returns:
- An empty String, if not set.
-