org.apache.tools.ant.taskdefs.optional.dotnet
public class NetCommand extends Object
Version: 0.5
Field Summary | |
---|---|
protected Commandline | commandLine
what is the command line |
protected Execute | executable
executable |
protected boolean | failOnError
flag to control action on execution trouble |
protected Task | owner
owner project |
protected String | program
actual program to invoke |
protected String | title
title of the command |
protected boolean | traceCommandLine
trace flag |
Constructor Summary | |
---|---|
NetCommand(Task owner, String title, String program)
constructor
|
Method Summary | |
---|---|
void | addArgument(String argument)
add an argument to a command line; do nothing if the arg is null or
empty string
|
void | addArgument(String argument1, String argument2)
concatenate two strings together and add them as a single argument,
but only if argument2 is non-null and non-zero length
|
void | addArguments(String[] arguments)
add an argument to a command line; do nothing if the arg is null or
empty string
|
int | getAutomaticResponseFileThreshold()
getter for threshold |
boolean | getFailFailOnError()
query fail on error flag
|
boolean | isUseResponseFile()
getter |
protected void | logError(String msg)
error text log
|
protected void | logVerbose(String msg)
verbose text log
|
protected void | prepareExecutor()
set up the command sequence.. |
void | runCommand()
Run the command using the given Execute instance.
|
int | scanOneFileset(DirectoryScanner scanner, Hashtable filesToBuild, long outputTimestamp)
scan through one fileset for files to include |
void | setAutomaticResponseFileThreshold(int automaticResponseFileThreshold)
set threshold for automatically using response files -use 0 for off |
void | setDirectory(File directory)
set the directory to run from, if the default is inadequate |
void | setFailOnError(boolean b)
set fail on error flag
|
void | setTraceCommandLine(boolean b)
turn tracing on or off
|
void | setUseResponseFile(boolean useResponseFile)
set this to true to always use the response file |
Parameters: title (for logging/errors) owner owner task program app we are to run
Parameters: argument The feature to be added to the Argument attribute
Parameters: argument1 The first argument argument2 The second argument
Parameters: arguments The features to be added to the Argument attribute
Returns: 0 for disabled, or a threshold for enabling response files
Returns: The failFailOnError value
Returns: response file state
Parameters: msg message to display as an error
Parameters: msg string to add to log if verbose is defined for the build
Throws: BuildException if something goes wrong and the failOnError flag is true
Parameters: scanner the directory scanner to use. filesToBuild the map to place the files. outputTimestamp timestamp to compare against
Returns: #of files out of date
UNKNOWN: should FAT granularity be included here?
Parameters: automaticResponseFileThreshold the threshold value to use.
Parameters: directory the directory to use.
Parameters: b fail flag -set to true to cause an exception to be raised if the return value != 0
Parameters: b trace flag
Parameters: useResponseFile a boolean
value.