This is a launcher for Ant.
| Field Summary |
|---|
| public static final String | ANTHOME_PROPERTY | The Ant Home (installation) Directory property.
{@value} |
| public static final String | ANTLIBDIR_PROPERTY | The Ant Library Directory property.
{@value} |
| public static final String | ANT_PRIVATEDIR | The directory name of the per-user ant directory.
{@value} |
| public static final String | ANT_PRIVATELIB | The name of a per-user library directory.
{@value} |
| public static boolean | launchDiag | launch diagnostics flag; for debugging trouble at launch time. |
| public static final String | USER_LIBDIR | The location of a per-user library directory.
It's value is the concatenation of #ANT_PRIVATEDIR
with #ANT_PRIVATELIB , with an appropriate file separator
in between. For example, on Unix, it's .ant/lib. |
| public static final String | MAIN_CLASS | The startup class that is to be run.
{@value} |
| public static final String | USER_HOMEDIR | System property with user home directory.
{@value} |
| protected static final int | EXIT_CODE_ERROR | Exit code on trouble |
| Method from org.apache.tools.ant.launch.Launcher Summary: |
|---|
|
main |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.tools.ant.launch.Launcher Detail: |
public static void main(String[] args) {
int exitCode;
try {
Launcher launcher = new Launcher();
exitCode = launcher.run(args);
} catch (LaunchException e) {
exitCode = EXIT_CODE_ERROR;
System.err.println(e.getMessage());
} catch (Throwable t) {
exitCode = EXIT_CODE_ERROR;
t.printStackTrace(System.err);
}
if (exitCode != 0) {
if (launchDiag) {
System.out.println("Exit code: "+exitCode);
}
System.exit(exitCode);
}
}
Entry point for starting command line Ant. |