Methods Summary |
---|
protected org.apache.tools.ant.types.Commandline | buildCmdLine()Builds a command line to execute ss.
Commandline commandLine = new Commandline();
// first off, make sure that we've got a command and a vssdir ...
if (getVsspath() == null) {
String msg = "vsspath attribute must be set!";
throw new BuildException(msg, getLocation());
}
// build the command line from what we got the format is
// ss Checkout VSS items [-G] [-C] [-H] [-I-] [-N] [-O] [-R] [-V] [-Y] [-?]
// as specified in the SS.EXE help
commandLine.setExecutable(getSSCommand());
commandLine.createArgument().setValue(COMMAND_CHECKOUT);
// VSS items
commandLine.createArgument().setValue(getVsspath());
// -GL
commandLine.createArgument().setValue(getLocalpath());
// -I- or -I-Y or -I-N
commandLine.createArgument().setValue(getAutoresponse());
// -R
commandLine.createArgument().setValue(getRecursive());
// -V
commandLine.createArgument().setValue(getVersionDateLabel());
// -Y
commandLine.createArgument().setValue(getLogin());
// -G
commandLine.createArgument().setValue(getFileTimeStamp());
// -GWS or -GWR
commandLine.createArgument().setValue(getWritableFiles());
// -G-
commandLine.createArgument().setValue(getGetLocalCopy());
return commandLine;
|
public void | setAutoresponse(java.lang.String response)Autoresponce behaviour. Valid options are Y and N.
super.setInternalAutoResponse(response);
|
public void | setDate(java.lang.String date)Date to check-out.
super.setInternalDate(date);
|
public void | setFileTimeStamp(CurrentModUpdated timestamp)Date and time stamp given to the local copy. Defaults to current .
super.setInternalFileTimeStamp(timestamp);
|
public void | setGetLocalCopy(boolean get)Retrieve a local copy during a checkout. Defaults to true.
super.setInternalGetLocalCopy(get);
|
public void | setLabel(java.lang.String label)Label to check-out.
super.setInternalLabel(label);
|
public void | setLocalpath(org.apache.tools.ant.types.Path localPath)Override the project working directory.
super.setInternalLocalPath(localPath.toString());
|
public void | setRecursive(boolean recursive)Check-out files recursively. Defaults to false.
super.setInternalRecursive(recursive);
|
public void | setVersion(java.lang.String version)Version to check-out.
super.setInternalVersion(version);
|
public void | setWritableFiles(WritableFiles files)Action taken when local files are writable. Defaults to fail .
Due to ss.exe returning with an exit code of '100' for both errors and when
a file has been skipped, failonerror is set to false when using
the skip option.
super.setInternalWritableFiles(files);
|