Methods Summary |
---|
org.apache.tools.ant.types.Commandline | buildCmdLine()Builds a command line to execute ss.
Commandline commandLine = new Commandline();
// build the command line from what we got the format is
// ss Get VSS items [-G] [-H] [-I-] [-N] [-O] [-R] [-V] [-W] [-Y] [-?]
// as specified in the SS.EXE help
commandLine.setExecutable(getSSCommand());
commandLine.createArgument().setValue(COMMAND_GET);
if (getVsspath() == null) {
throw new BuildException("vsspath attribute must be set!", getLocation());
}
commandLine.createArgument().setValue(getVsspath());
// -GL
commandLine.createArgument().setValue(getLocalpath());
// -I- or -I-Y or -I-N
commandLine.createArgument().setValue(getAutoresponse());
// -O-
commandLine.createArgument().setValue(getQuiet());
// -R
commandLine.createArgument().setValue(getRecursive());
// -V
commandLine.createArgument().setValue(getVersionDateLabel());
// -W
commandLine.createArgument().setValue(getWritable());
// -Y
commandLine.createArgument().setValue(getLogin());
// -G
commandLine.createArgument().setValue(getFileTimeStamp());
// -GWS or -GWR
commandLine.createArgument().setValue(getWritableFiles());
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 get.
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 | setLabel(java.lang.String label)Label to get.
super.setInternalLabel(label);
|
public void | setLocalpath(org.apache.tools.ant.types.Path localPath)Override the project working directory.
super.setInternalLocalPath(localPath.toString());
|
public final void | setQuiet(boolean quiet)Enable quiet mode. Defaults to false.
super.setInternalQuiet(quiet);
|
public final void | setRecursive(boolean recursive)Get files recursively. Defaults to false.
super.setInternalRecursive(recursive);
|
public void | setVersion(java.lang.String version)Version to get.
super.setInternalVersion(version);
|
public final void | setWritable(boolean writable)Unset the READ-ONLY flag on files retrieved from VSS. Defaults to false.
super.setInternalWritable(writable);
|
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);
|