| java.lang.Object org.apache.tools.ant.taskdefs.optional.dotnet.NetCommand
NetCommand | public class NetCommand (Code) | | This is a helper class to spawn net commands out. In its initial form it
contains no .net specifics, just contains all the command line/exe
construction stuff. However, it may be handy in future to have a means of
setting the path to point to the dotnet bin directory; in which case the
shared code should go in here.
version: 0.5 |
failOnError | protected boolean failOnError(Code) | | flag to control action on execution trouble
|
program | protected String program(Code) | | actual program to invoke
|
traceCommandLine | protected boolean traceCommandLine(Code) | | trace flag
|
NetCommand | public NetCommand(Task owner, String title, String program)(Code) | | constructor
Parameters: title - (for logging/errors) Parameters: owner - owner task Parameters: program - app we are to run |
addArgument | public void addArgument(String argument)(Code) | | add an argument to a command line; do nothing if the arg is null or
empty string
Parameters: argument - The feature to be added to the Argument attribute |
addArgument | public void addArgument(String argument1, String argument2)(Code) | | concatenate two strings together and add them as a single argument,
but only if argument2 is non-null and non-zero length
Parameters: argument1 - The first argument Parameters: argument2 - The second argument |
addArguments | public void addArguments(String[] arguments)(Code) | | add an argument to a command line; do nothing if the arg is null or
empty string
Parameters: arguments - The features to be added to the Argument attribute |
getAutomaticResponseFileThreshold | public int getAutomaticResponseFileThreshold()(Code) | | getter for threshold
0 for disabled, or a threshold for enabling response files |
getFailFailOnError | public boolean getFailFailOnError()(Code) | | query fail on error flag
The failFailOnError value |
isUseResponseFile | public boolean isUseResponseFile()(Code) | | getter
response file state |
logError | protected void logError(String msg)(Code) | | error text log
Parameters: msg - message to display as an error |
logVerbose | protected void logVerbose(String msg)(Code) | | verbose text log
Parameters: msg - string to add to log if verbose is defined for the build |
prepareExecutor | protected void prepareExecutor()(Code) | | set up the command sequence..
|
runCommand | public void runCommand() throws BuildException(Code) | | Run the command using the given Execute instance.
exception: BuildException - if something goes wrong and thefailOnError flag is true |
scanOneFileset | public int scanOneFileset(DirectoryScanner scanner, Hashtable filesToBuild, long outputTimestamp)(Code) | | scan through one fileset for files to include
Parameters: scanner - the directory scanner to use. Parameters: filesToBuild - the map to place the files. Parameters: outputTimestamp - timestamp to compare against #of files out of date |
setAutomaticResponseFileThreshold | public void setAutomaticResponseFileThreshold(int automaticResponseFileThreshold)(Code) | | set threshold for automatically using response files -use 0 for off
Parameters: automaticResponseFileThreshold - the threshold value to use. |
setDirectory | public void setDirectory(File directory)(Code) | | set the directory to run from, if the default is inadequate
Parameters: directory - the directory to use. |
setFailOnError | public void setFailOnError(boolean b)(Code) | | set fail on error flag
Parameters: b - fail flag -set to true to cause an exception to be raised ifthe return value != 0 |
setTraceCommandLine | public void setTraceCommandLine(boolean b)(Code) | | turn tracing on or off
Parameters: b - trace flag |
setUseResponseFile | public void setUseResponseFile(boolean useResponseFile)(Code) | | set this to true to always use the response file
Parameters: useResponseFile - a boolean value. |
|
|