Execute
instead.public class Exec extends Task
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 | Field and Description |
---|---|
protected java.io.PrintWriter |
fos
Deprecated.
|
description, location, project
Constructor and Description |
---|
Exec()
Deprecated.
Constructor for Exec.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Deprecated.
Execute the task.
|
protected void |
logFlush()
Deprecated.
Close output.
|
protected void |
outputLog(java.lang.String line,
int messageLevel)
Deprecated.
Log an output message.
|
protected int |
run(java.lang.String command)
Deprecated.
Execute the command.
|
void |
setCommand(java.lang.String command)
Deprecated.
Set the command to exec.
|
void |
setDir(java.lang.String d)
Deprecated.
Set the directory.
|
void |
setFailonerror(boolean fail)
Deprecated.
Set the failOnError attribute.
|
void |
setOs(java.lang.String os)
Deprecated.
Set the Operating System that this exec is to run in.
|
void |
setOutput(java.lang.String out)
Deprecated.
Set the output filename.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public Exec()
public void execute() throws BuildException
execute
in class Task
BuildException
- on errorprotected int run(java.lang.String command) throws BuildException
command
- the command to execBuildException
- on errorpublic void setDir(java.lang.String d)
d
- a String
valuepublic void setOs(java.lang.String os)
os
- a String
valuepublic void setCommand(java.lang.String command)
command
- a String
valuepublic void setOutput(java.lang.String out)
out
- a String
valuepublic void setFailonerror(boolean fail)
fail
- a boolean
valueprotected void outputLog(java.lang.String line, int messageLevel)
line
- the line to putputmessageLevel
- the level of logging - ignored
if output is going to a fileprotected void logFlush()