@Deprecated public class AntExecutor extends Object
Constructor and Description |
---|
AntExecutor(String buildDir)
Deprecated.
Initializes a new AntExecutor object assigning it the build.xml file in the directory passed as
parameter, the base directory is the same as the one the build.xml is in.
|
AntExecutor(String buildFile,
String baseDir)
Deprecated.
Initializes a newly created AntExecutor object assigning it the build.xml file to execute tasks
from and the base directory where they will be executed.
|
Modifier and Type | Method and Description |
---|---|
void |
closeLogFile()
Deprecated.
|
String |
getErr()
Deprecated.
|
boolean |
hasErrorOccured()
Deprecated.
|
void |
runTask(String task)
Deprecated.
Executes an ant task
|
void |
runTask(Vector<String> tasks)
Deprecated.
Executes a set of ant tasks
|
void |
setFinished(boolean v)
Deprecated.
|
String |
setLogFile(String name)
Deprecated.
|
String |
setLogFile(String directory,
String logFileName)
Deprecated.
|
void |
setLogFileAndListener(String filename)
Deprecated.
|
void |
setLogFileInOBPrintStream(File f)
Deprecated.
|
void |
setOBPrintStreamLog(PrintStream p)
Deprecated.
|
void |
setOBPrintStreamLog(PrintWriter p)
Deprecated.
|
void |
setPrintWriter(PrintWriter p)
Deprecated.
|
void |
setProperty(String property,
String value)
Deprecated.
Set a value to a property to the project.
|
public AntExecutor(String buildFile, String baseDir) throws Exception
buildFile
- - Complete path to the build.xml filebaseDir
- - Complete path to the base directoryException
- - if an error occurs loading the xml filepublic AntExecutor(String buildDir) throws Exception
buildDir
- - Directory where is the build.xml file and that will be the base directoryException
- - if an error occurs loading the xml file@Deprecated public void setPrintWriter(PrintWriter p)
@Deprecated public String setLogFile(String directory, String logFileName) throws Exception
directory
- - Path to the directory for the filelogFileName
- - Name of the log fileException
@Deprecated public String setLogFile(String name) throws Exception
name
- - File nameException
@Deprecated public void setLogFileInOBPrintStream(File f)
public void setLogFileAndListener(String filename)
@Deprecated public void setOBPrintStreamLog(PrintWriter p)
OBPrintStream
@Deprecated public void setOBPrintStreamLog(PrintStream p)
public void setProperty(String property, String value)
property
- - Property namevalue
- - Value to assignpublic void runTask(String task) throws Exception
task
- - Name of the task to executeException
- - In case the project is not loadedpublic void runTask(Vector<String> tasks) throws Exception
tasks
- - A VectorException
- - In case the project is not loaded@Deprecated public void setFinished(boolean v)
v
- - boolean value to setOBPrintStream
@Deprecated public String getErr()
@Deprecated public boolean hasErrorOccured()
public void closeLogFile()