|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.Exec
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 java.io.PrintWriter |
fos
Deprecated. |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
Exec()
Deprecated. |
Method Summary | |
void |
execute()
Deprecated. Called by the project to let the task do its work. |
protected void |
logFlush()
Deprecated. |
protected void |
outputLog(java.lang.String line,
int messageLevel)
Deprecated. |
protected int |
run(java.lang.String command)
Deprecated. |
void |
setCommand(java.lang.String command)
Deprecated. |
void |
setDir(java.lang.String d)
Deprecated. |
void |
setFailonerror(boolean fail)
Deprecated. |
void |
setOs(java.lang.String os)
Deprecated. |
void |
setOutput(java.lang.String out)
Deprecated. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.PrintWriter fos
Constructor Detail |
public Exec()
Method Detail |
public void execute() throws BuildException
Task
execute
in class Task
BuildException
- if something goes wrong with the buildprotected int run(java.lang.String command) throws BuildException
BuildException
public void setDir(java.lang.String d)
public void setOs(java.lang.String os)
public void setCommand(java.lang.String command)
public void setOutput(java.lang.String out)
public void setFailonerror(boolean fail)
protected void outputLog(java.lang.String line, int messageLevel)
protected void logFlush()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |