| |
|
| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.Exec
Exec | public class Exec extends Task (Code) | | Executes a given command if the os platform is appropriate.
As of Ant 1.2, this class is no longer the
implementation of Ant's <exec> task - it is considered to be
dead code by the Ant developers and is unmaintained. Don't use
it.
org.apache.tools.ant.taskdefs.Execute Execute |
Inner Class :class StreamPumper extends Thread | |
Constructor Summary | |
public | Exec() Constructor for Exec. |
Method Summary | |
public void | execute() Execute the task. | protected void | logFlush() Close output. | protected void | outputLog(String line, int messageLevel) Log an output message. | protected int | run(String command) Execute the command. | public void | setCommand(String command) Set the command to exec. | public void | setDir(String d) Set the directory. | public void | setFailonerror(boolean fail) Set the failOnError attribute. | public void | setOs(String os) Set the Operating System that this exec is to run in. | public void | setOutput(String out) Set the output filename. |
Exec | public Exec()(Code) | | Constructor for Exec.
Prints a warning message to std error.
|
logFlush | protected void logFlush()(Code) | | Close output.
|
outputLog | protected void outputLog(String line, int messageLevel)(Code) | | Log an output message.
Parameters: line - the line to putput Parameters: messageLevel - the level of logging - ignoredif output is going to a file |
setCommand | public void setCommand(String command)(Code) | | Set the command to exec.
Parameters: command - a String value |
setDir | public void setDir(String d)(Code) | | Set the directory.
Parameters: d - a String value |
setFailonerror | public void setFailonerror(boolean fail)(Code) | | Set the failOnError attribute.
Default is false.
Parameters: fail - a boolean value |
setOs | public void setOs(String os)(Code) | | Set the Operating System that this exec is to run in.
Parameters: os - a String value |
setOutput | public void setOutput(String out)(Code) | | Set the output filename.
Parameters: out - a String value |
|
|
|