|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.bundle.ant.AntMain
public class AntMain
Command line entry point into RHQ Ant. This class is entered via the canonical `public static void main` entry point and reads the command line arguments. It then assembles and executes an RHQ Ant bundle recipe (deploy.xml).
NOTE: This is a modified copy of the org.apache.tools.ant.Main class from Ant 1.8.0.
| Constructor Summary | |
|---|---|
|
AntMain()
Constructor used when creating Main for later arg processing and startup |
protected |
AntMain(String[] args)
Deprecated. since 1.6.x |
| Method Summary | |
|---|---|
protected void |
addBuildListeners(org.apache.tools.ant.Project project)
Adds the listeners specified in the command line arguments, along with the default listener, to the specified project. |
protected void |
exit(int exitCode)
This operation is expected to call System.exit(int), which
is what the base version does. |
static String |
getAntVersion()
Returns the Ant version information, if available. |
static void |
main(String[] args)
Command line entry point. |
static void |
start(String[] args,
Properties additionalUserProperties,
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. |
void |
startAnt(String[] args,
Properties additionalUserProperties,
ClassLoader coreLoader)
Start Ant |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AntMain()
protected AntMain(String[] args)
throws org.apache.tools.ant.BuildException
args - Command line arguments. Must not be null.
org.apache.tools.ant.BuildException - if the specified build file doesn't exist
or is a directory.| Method Detail |
|---|
public static void start(String[] args,
Properties additionalUserProperties,
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 void startAnt(String[] args,
Properties additionalUserProperties,
ClassLoader coreLoader)
startAnt in interface org.apache.tools.ant.launch.AntMainargs - command line argsadditionalUserProperties - properties to set beyond those that
may be specified on the args listcoreLoader - - not usedprotected void exit(int exitCode)
System.exit(int), which
is what the base version does.
However, it is possible to do something else.
exitCode - code to exit withpublic static void main(String[] args)
args - Command line arguments. Must not be null.protected void addBuildListeners(org.apache.tools.ant.Project project)
project - The project to add listeners to.
Must not be null.
public static String getAntVersion()
throws org.apache.tools.ant.BuildException
null)
org.apache.tools.ant.BuildException - if the version information is unavailable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||