org.apache.tools.ant.taskdefs
public class Exec extends Task
Deprecated: delegate to {@link org.apache.tools.ant.taskdefs.Execute Execute} instead.
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.
| Field Summary | |
|---|---|
| protected PrintWriter | fos |
| Constructor Summary | |
|---|---|
| Exec() | |
| Method Summary | |
|---|---|
| void | execute() |
| protected void | logFlush() |
| protected void | outputLog(String line, int messageLevel) |
| protected int | run(String command) |
| void | setCommand(String command) |
| void | setDir(String d) |
| void | setFailonerror(boolean fail) |
| void | setOs(String os) |
| void | setOutput(String out) |