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.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private File | |
| private boolean | |
| protected PrintWriter | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected void | |
| protected void | |
| protected int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| command | back to summary |
|---|---|
| private String command | |
| dir | back to summary |
|---|---|
| private File dir | |
| failOnError | back to summary |
|---|---|
| private boolean failOnError | |
| fos | back to summary |
|---|---|
| protected PrintWriter fos | |
| os | back to summary |
|---|---|
| private String os | |
| out | back to summary |
|---|---|
| private String out | |
| Exec | back to summary |
|---|---|
| public Exec() Constructor for Exec. Prints a warning message to std error. | |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Execute the task.
| |
| logFlush | back to summary |
|---|---|
| protected void logFlush() Close output. | |
| outputLog | back to summary |
|---|---|
| protected void outputLog(String line, int messageLevel) Log an output message.
| |
| run | back to summary |
|---|---|
| protected int run(String command) throws BuildException Execute the command.
| |
| setCommand | back to summary |
|---|---|
| public void setCommand(String command) Set the command to exec.
| |
| setDir | back to summary |
|---|---|
| public void setDir(String d) Set the directory.
| |
| setFailonerror | back to summary |
|---|---|
| public void setFailonerror(boolean fail) Set the failOnError attribute. Default is false.
| |
| setOs | back to summary |
|---|---|
| public void setOs(String os) Set the Operating System that this exec is to run in.
| |
| setOutput | back to summary |
|---|---|
| public void setOutput(String out) Set the output filename.
| |
| Modifier and Type | Field and Description |
|---|---|
| private BufferedReader | |
| private boolean | |
| private int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | run()
Overrides java. Implements java. |
| din | back to summary |
|---|---|
| private BufferedReader din | |
| endOfStream | back to summary |
|---|---|
| private boolean endOfStream | |
| messageLevel | back to summary |
|---|---|
| private int messageLevel | |
| SLEEP_TIME | back to summary |
|---|---|
| private static final int SLEEP_TIME | |
| StreamPumper | back to summary |
|---|---|
| public StreamPumper(InputStream is, int messageLevel) | |
| pumpStream | back to summary |
|---|---|
| public void pumpStream() throws IOException | |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a
| |