|
Main (Apache Ant API)
org.apache.tools.ant
|
Field Summary | |
static java.lang.String |
DEFAULT_BUILD_FILENAME
The default build file name. |
Constructor Summary | |
protected |
Main(java.lang.String[] args)
Sole constructor, which parses and deals with command line arguments. |
Method Summary | |
protected void |
addBuildListeners(Project project)
Adds the listeners specified in the command line arguments, along with the default listener, to the specified project. |
static java.lang.String |
getAntVersion()
Returns the Ant version information, if available. |
static void |
main(java.lang.String[] args)
Command line entry point. |
static void |
start(java.lang.String[] args,
java.util.Properties additionalUserProperties,
java.lang.ClassLoader coreLoader)
Creates a new instance of this class using the arguments specified, gives it any extra user properties which have been specified, and then runs the build using the classloader provided. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_BUILD_FILENAME
Constructor Detail |
protected Main(java.lang.String[] args) throws BuildException
args
- Command line arguments. Must not be null
.
BuildException
- if the specified build file doesn't exist
or is a directory.Method Detail |
public static void start(java.lang.String[] args, java.util.Properties additionalUserProperties, java.lang.ClassLoader coreLoader)
args
- Command line arguments. Must not be null
.additionalUserProperties
- Any extra properties to use in this
build. May be null
, which is the equivalent to
passing in an empty set of properties.coreLoader
- Classloader used for core classes. May be
null
in which case the system classloader is used.public static void main(java.lang.String[] args)
args
- Command line arguments. Must not be null
.protected void addBuildListeners(Project project)
project
- The project to add listeners to.
Must not be null
.public static java.lang.String getAntVersion() throws BuildException
null
)
BuildException
- if the version information is unavailable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |