|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.Exec
Execute
instead.
public class Exec
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 |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
Exec()
Deprecated. Constructor for Exec. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
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
execute in class TaskBuildException - on error
protected int run(java.lang.String command)
throws BuildException
command - the command to exec
BuildException - 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 value
protected 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||