org.apache.maven.scm.provider.vss.commands

Class VssParameterContext

public class VssParameterContext extends Object implements VssConstants

Constructor Summary
VssParameterContext(VssScmProviderRepository repo)
Method Summary
StringgetAutoresponse()
Gets the auto response string.
StringgetComment()
Gets the comment string.
StringgetFileTimeStamp()
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
StringgetGetLocalCopy()
Builds and returns the -G- flag if required.
static VssParameterContextgetInstance(Object obj)
StringgetLabel()
Gets the label string.
StringgetLocalpath()
Gets the localpath string.
StringgetLogin()
Gets the login string.
StringgetOutput()
Gets the output file string.
StringgetQuiet()
Gets the quiet string.
StringgetRecursive()
Gets the recursive string.
StringgetSSCommand()
Gets the sscommand string.
StringgetStyle()
Gets the style string.
StringgetUser()
Gets the user string.
StringgetVersion()
Gets the version string.
StringgetVersionDate()
Gets the Version date string.
StringgetVersionDateLabel()
Gets the version string.
StringgetVersionLabel()
StringgetVssPath()
StringgetWritable()
Gets the writable string.
StringgetWritableFiles()
Gets the value to determine the behaviour when encountering writable files.

Constructor Detail

VssParameterContext

public VssParameterContext(VssScmProviderRepository repo)

Method Detail

getAutoresponse

public String 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.

getComment

public String getComment()
Gets the comment string. "-Ccomment text"

Returns: A comment of "-" if comment is not set.

getFileTimeStamp

public String 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.

getGetLocalCopy

public String getGetLocalCopy()
Builds and returns the -G- flag if required.

Returns: An empty string if get local copy is true.

getInstance

public static VssParameterContext getInstance(Object obj)

getLabel

public String getLabel()
Gets the label string. "-Lbuild1" Max label length is 32 chars

Returns: An empty string if label is not set.

getLocalpath

public String 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.

getLogin

public String 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.

getOutput

public String getOutput()
Gets the output file string. "-Ooutput.file"

Returns: An empty string if user is not set.

getQuiet

public String getQuiet()
Gets the quiet string. -O-

Returns: An empty string if quiet is not set or is false.

getRecursive

public String getRecursive()
Gets the recursive string. "-R"

Returns: An empty string if recursive is not set or is false.

getSSCommand

public String 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.

getStyle

public String getStyle()
Gets the style string. "-Lbuild1"

Returns: An empty string if label is not set.

getUser

public String getUser()
Gets the user string. "-Uusername"

Returns: An empty string if user is not set.

getVersion

public String getVersion()
Gets the version string.

Returns: An empty string if a version is not set.

getVersionDate

public String getVersionDate()
Gets the Version date string.

Returns: An empty string if neither Todate or from date are set.

Throws: ScmException

getVersionDateLabel

public String 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.

getVersionLabel

public String getVersionLabel()

getVssPath

public String getVssPath()

getWritable

public String getWritable()
Gets the writable string. "-W"

Returns: An empty string if writable is not set or is false.

getWritableFiles

public String getWritableFiles()
Gets the value to determine the behaviour when encountering writable files.

Returns: An empty String, if not set.

Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.