org.apache.tools.ant.taskdefs
public class Exec extends Task
Deprecated: since 1.2.
delegate to Execute
instead.
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()
Constructor for Exec.
|
Method Summary | |
---|---|
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. |
void | setCommand(String command)
Set the command to exec. |
void | setDir(String d)
Set the directory. |
void | setFailonerror(boolean fail)
Set the failOnError attribute.
|
void | setOs(String os)
Set the Operating System that this exec is to run in. |
void | setOutput(String out)
Set the output filename. |
Throws: BuildException on error
Parameters: line the line to putput messageLevel the level of logging - ignored if output is going to a file
Parameters: command the command to exec
Returns: the exit value of the command
Throws: BuildException on error
Parameters: command a String
value
Parameters: d a String
value
Parameters: fail a boolean
value
Parameters: os a String
value
Parameters: out a String
value