org.apache.tools.ant.taskdefs
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.
execute , 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 |
fos
protected PrintWriter fos
Exec
public Exec()
Sole constructor.
execute
public void execute()
throws BuildException
Called by the project to let the task do its work. This method may be
called more than once, if the task is invoked more than once.
For example,
if target1 and target2 both depend on target3, then running
"ant target1 target2" will run all tasks in target3 twice.
- execute in interface Task
logFlush
protected void logFlush()
outputLog
protected void outputLog(String line,
int messageLevel)
setCommand
public void setCommand(String command)
setDir
public void setDir(String d)
setFailonerror
public void setFailonerror(boolean fail)
setOs
public void setOs(String os)
setOutput
public void setOutput(String out)
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.