| Modifier and Type | Field and Description |
|---|---|
| public static final String | ANT_PRIVATEDIR
The directory name of the per-user ant directory. |
| public static final String | ANT_PRIVATELIB
The name of a per-user library directory. |
| public static final String | ANTHOME_PROPERTY
The Ant Home (installation) Directory property. |
| public static final String | ANTLIBDIR_PROPERTY
The Ant Library Directory property. |
| protected static final int | EXIT_CODE_ERROR
Exit code on trouble |
| private static final String | JAVA_CLASS_PATH
System property with application classpath. |
| public boolean | launchDiag
launch diagnostics flag; for debugging trouble at launch time. |
| public static final String | MAIN_CLASS
The startup class that is to be run. |
| public static final String | USER_HOMEDIR
System property with user home directory. |
| public static final String | USER_LIBDIR
The location of a per-user library directory. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private URL[] | Returns: a combined arraythe jars specified in -lib command line options libJars, final URL[] the jars in ~/.ant/lib userJars, final URL[] the jars in $ANT_HOME/lib systemJars, final File the tools.jar file toolsJar)Combine the various jar sources into a single array of jars. |
| private URL[] | Returns: an array of URLs.the classpath string cpString, final List<String> the list of -lib entries. libPaths)Get the list of -lib entries and -cp entry into a URL array. |
| private URL[] | Returns: the URLsthe dir that ant-launcher ran from antLauncherDir)Get the jar files in ANT_HOME/lib. |
| private URL[] | |
| private void | |
| public static void | |
| private int | |
| private void | setProperty(final String
property name name, final String value value)set a system property, optionally log what is going on |
| ANT_PRIVATEDIR | back to summary |
|---|---|
| public static final String ANT_PRIVATEDIR The directory name of the per-user ant directory. .ant | |
| ANT_PRIVATELIB | back to summary |
|---|---|
| public static final String ANT_PRIVATELIB The name of a per-user library directory. lib | |
| ANTHOME_PROPERTY | back to summary |
|---|---|
| public static final String ANTHOME_PROPERTY The Ant Home (installation) Directory property. ant.home | |
| ANTLIBDIR_PROPERTY | back to summary |
|---|---|
| public static final String ANTLIBDIR_PROPERTY The Ant Library Directory property. ant.library.dir | |
| EXIT_CODE_ERROR | back to summary |
|---|---|
| protected static final int EXIT_CODE_ERROR Exit code on trouble | |
| JAVA_CLASS_PATH | back to summary |
|---|---|
| private static final String JAVA_CLASS_PATH System property with application classpath. java.class.path | |
| launchDiag | back to summary |
|---|---|
| public boolean launchDiag launch diagnostics flag; for debugging trouble at launch time. | |
| MAIN_CLASS | back to summary |
|---|---|
| public static final String MAIN_CLASS The startup class that is to be run. org.apache.tools.ant.Main | |
| USER_HOMEDIR | back to summary |
|---|---|
| public static final String USER_HOMEDIR System property with user home directory. user.home | |
| USER_LIBDIR | back to summary |
|---|---|
| public static final String USER_LIBDIR The location of a per-user library directory. It's value is the concatenation of | |
| Launcher | back to summary |
|---|---|
| private Launcher() | |
| addPath | back to summary |
|---|---|
| private void addPath(final String path, final boolean getJars, final List<URL> libPathURLs) throws MalformedURLException Add a CLASSPATH or -lib to lib path urls. Only filesystem resources are supported.
| |
| getJarArray | back to summary |
|---|---|
| private URL[] getJarArray(final URL[] libJars, final URL[] userJars, final URL[] systemJars, final File toolsJar) throws MalformedURLException Combine the various jar sources into a single array of jars. | |
| getLibPathURLs | back to summary |
|---|---|
| private URL[] getLibPathURLs(final String cpString, final List<String> libPaths) throws MalformedURLException Get the list of -lib entries and -cp entry into a URL array.
| |
| getSystemURLs | back to summary |
|---|---|
| private URL[] getSystemURLs(final File antLauncherDir) throws MalformedURLException Get the jar files in ANT_HOME/lib. determine ant library directory for system jars: use property or default using location of ant-launcher.jar
| |
| getUserURLs | back to summary |
|---|---|
| private URL[] getUserURLs() throws MalformedURLException Get the jar files in user.home/.ant/lib
| |
| logPath | back to summary |
|---|---|
| private void logPath(final String name, final File path) | |
| main | back to summary |
|---|---|
| public static void main(final String[] args) Entry point for starting command line Ant.
| |
| run | back to summary |
|---|---|
| private int run(final String[] args) throws LaunchException, MalformedURLException Run the launcher to launch Ant.
| |
| setProperty | back to summary |
|---|---|
| private void setProperty(final String name, final String value) set a system property, optionally log what is going on | |