org.apache.tools.ant.taskdefs

Class Exec

public class Exec extends Task

Deprecated: delegate to {@link org.apache.tools.ant.taskdefs.Execute 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 PrintWriterfos
Constructor Summary
Exec()
Method Summary
voidexecute()
protected voidlogFlush()
protected voidoutputLog(String line, int messageLevel)
protected intrun(String command)
voidsetCommand(String command)
voidsetDir(String d)
voidsetFailonerror(boolean fail)
voidsetOs(String os)
voidsetOutput(String out)

Field Detail

fos

protected PrintWriter fos

Constructor Detail

Exec

public Exec()

Method Detail

execute

public void execute()

logFlush

protected void logFlush()

outputLog

protected void outputLog(String line, int messageLevel)

run

protected int run(String command)

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 B) 2000-2007 Apache Software Foundation. All Rights Reserved.