org.apache.tools.ant.launch

Class Launcher

public class Launcher extends Object

This is a launcher for Ant.

Since: Ant 1.6

Field Summary
static StringANTHOME_PROPERTY
The Ant Home (installation) Directory property.
static StringANTLIBDIR_PROPERTY
The Ant Library Directory property.
static StringANT_PRIVATEDIR
The directory name of the per-user ant directory.
static StringANT_PRIVATELIB
The name of a per-user library directory.
protected static intEXIT_CODE_ERROR
Exit code on trouble
static booleanlaunchDiag
launch diagnostics flag; for debugging trouble at launch time.
static StringMAIN_CLASS
The startup class that is to be run.
static StringUSER_HOMEDIR
System property with user home directory.
static StringUSER_LIBDIR
The location of a per-user library directory.
Method Summary
static voidmain(String[] args)
Entry point for starting command line Ant.

Field Detail

ANTHOME_PROPERTY

public static final String ANTHOME_PROPERTY
The Ant Home (installation) Directory property. {@value }

ANTLIBDIR_PROPERTY

public static final String ANTLIBDIR_PROPERTY
The Ant Library Directory property. {@value }

ANT_PRIVATEDIR

public static final String ANT_PRIVATEDIR
The directory name of the per-user ant directory. {@value }

ANT_PRIVATELIB

public static final String ANT_PRIVATELIB
The name of a per-user library directory. {@value }

EXIT_CODE_ERROR

protected static final int EXIT_CODE_ERROR
Exit code on trouble

launchDiag

public static boolean launchDiag
launch diagnostics flag; for debugging trouble at launch time.

MAIN_CLASS

public static final String MAIN_CLASS
The startup class that is to be run. {@value }

USER_HOMEDIR

public static final String USER_HOMEDIR
System property with user home directory. {@value }

USER_LIBDIR

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.

Method Detail

main

public static void main(String[] args)
Entry point for starting command line Ant.

Parameters: args commandline arguments