| net.sourceforge.cruisecontrol.util.EnvCommandline net.sourceforge.cruisecontrol.sourcecontrols.accurev.AccurevCommandline
AccurevCommandline | public AccurevCommandline(AccurevCommand command)(Code) | | Creates a new AccurevCommandline.
Parameters: command - |
addArgument | public void addArgument(String argument)(Code) | | Adds an argument to the command line
Parameters: argument - the argument to add (eg "-i"). Quotes and escape codes are not required. |
addOption | public void addOption(String option, String optionArgument)(Code) | | Adds an option with an argument (eg. -s my_stream)
Parameters: option - the option flag (eg. "-s") Parameters: optionArgument - the option argument ("eg. my_stream"). No need for quotes or escape characters. |
execute | public boolean execute(AccurevInputParser inputParser)(Code) | | Runs accurev and parses the output
true if there are no parsing errors. |
getReturnCode | public int getReturnCode()(Code) | | Gets the last "accurev" exec's return code.
the return code from the command line. Usually 0 is SUCCESS. |
isSuccess | public boolean isSuccess()(Code) | | Returns the run status
true if the last command executed successfully (that is, returnCode == success and theparser didn't detect errors). It returns false if the command has not been run yet. |
isVerbose | public boolean isVerbose()(Code) | | Returns the verbose flag
true if verbose logging is enabled |
parseStream | public boolean parseStream(InputStream iStream) throws CruiseControlException(Code) | | Default stream parser. It scans Accurev output and detects basic errors.
true if no errors were found in Accurev's output. |
run | public void run()(Code) | | Runs accurev and returns a reference to this.
|
selectModified | public void selectModified()(Code) | | Selects all modified files in keep (as in -m)
|
setComment | public void setComment(String comment)(Code) | | Sets the transaction comment (-c comment)
Parameters: comment - the comment text. Quotes and escapes are not required. |
setDepot | public void setDepot(String depot)(Code) | | Sets the Accurev depot to work in (-d depot)
Parameters: depot - the depot name |
setFileList | public void setFileList(String filelistName)(Code) | | Selects the files to use reading them from the filelist (as in -l filelistName)
Parameters: filelistName - the path of the file containing the list of files to process |
setInfoOnly | public void setInfoOnly()(Code) | | Switches the -i option on
|
setInputParser | public void setInputParser(AccurevInputParser inputParser)(Code) | | Sets the input parser, which is the object that handles Accurev's output as its input.
|
setRunner | public void setRunner(Runner runner)(Code) | | Sets the runner
Parameters: runner - the object that is in charge for provide some input to the parser |
setStream | public void setStream(String stream)(Code) | | Sets the Accurev stream to work in (-s stream)
Parameters: stream - the stream name |
setTransactionRange | public void setTransactionRange(Timespec time)(Code) | | Selects a transaction range for hist as in (-t), single timespec
Parameters: time - a timespec (can be a DateTimespec, a KeywordTimespec |
setTransactionRange | public void setTransactionRange(Timespec begin, Timespec end)(Code) | | Selects a transaction range for hist as in (-t), timespec span (a-b, a-, -b)
|
setVerbose | public void setVerbose(boolean verbose)(Code) | | Enables/disables verbose logging
Parameters: verbose - if true, verbose logging is enabled. |
setWorkspaceLocalPath | public void setWorkspaceLocalPath(File workspace) throws CruiseControlException(Code) | | Selects the workspace to use, specifying its path in the local filesystem.
Parameters: workspace - the workspace path throws: CruiseControlException - if the path does not exist |
setWorkspaceLocalPath | public void setWorkspaceLocalPath(String workspace) throws CruiseControlException(Code) | | Selects the workspace to use, specifying its path in the local filesystem.
Parameters: workspace - the workspace path throws: CruiseControlException - if the path does not exist |
|
|