Top Description Fields Constructors Methods
org.apache.tools.ant

public final Class MagicNames

extends Object
Class Inheritance
Imports
org.apache.tools.ant.launch.Launcher

Magic names used within Ant. Not all magic names are here yet.
Since
Ant 1.6

Field Summary

Modifier and TypeField and Description
public static final String
ANT_CORE_PACKAGE

Name of Ant core package Value: org.apache.tools.ant

public static final String
ANT_EXECUTOR_CLASSNAME

Property defining the classname of an executor.

public static final String
ANT_EXECUTOR_REFERENCE

Reference to the current Ant executor.

public static final String
ANT_FILE

property for ant file name.

public static final String
ANT_FILE_TYPE

property for type of ant build file (either file or url) Value: ant.file.type

public static final String
ANT_FILE_TYPE_FILE

ant build file of type file Value: file

public static final String
ANT_FILE_TYPE_URL

ant build file of type url Value: url

public static final String
ANT_HOME

Property used to store the location of ant.

public static final String
ANT_JAVA_VERSION

Property used to store the java version ant is running in. Value: ant.java.version

public static final String
ANT_LIB

Property used to store the location of the ant library (typically the ant.jar file.) Value: ant.core.lib

public static final String
ANT_SHELL_LAUNCHER_REF_ID

Name of the project reference holding an instance of org.apache.tools.ant.taskdefs.launcher.CommandLauncher to use when executing commands with the help of an external script.

public static final String
ANT_VERSION

Ant version property.

public static final String
ANT_VM_LAUNCHER_REF_ID

Name of the project reference holding an instance of org.apache.tools.ant.taskdefs.launcher.CommandLauncher to use when executing commands without the help of an external script.

public static final String
ANTLIB_PREFIX

prefix for antlib URIs: antlib:

public static final String
ATTRIBUTE_NAMESPACE

Name of the namespace "type".

public static final String
AUTO_TMPDIR

Magic property that will be set to override java.io.tmpdir system property as the location for Ant's default temporary directory if a temp file is created and TMPDIR is not set.

public static final String
BUILD_JAVAC_SOURCE

property that provides the default value for javac's and javadoc's source attribute.

public static final String
BUILD_JAVAC_TARGET

property that provides the default value for javac's target attribute.

public static final String
BUILD_SYSCLASSPATH

System classpath policy.

public static final String
DISABLE_NASHORN_COMPAT

Magic property that can be used to disable Nashorn compatibility mode when using GraalVM JavaScript as script engine.

public static final String
HTTP_AGENT_PROPERTY

Name of the property which can provide an override of the User-Agent used in <get> tasks.

public static final String
PROJECT_BASEDIR

property name for basedir of the project.

public static final String
PROJECT_DEFAULT_TARGET

Name of the property holding the default target of the currently executing project, if one has been specified.

public static final String
PROJECT_HELPER_CLASS

Name of JVM system property which provides the name of the ProjectHelper class to use.

public static final String
PROJECT_HELPER_SERVICE

The service identifier in jars which provide ProjectHelper implementations.

public static final String
PROJECT_INVOKED_TARGETS

Name of the property holding a comma separated list of targets that have been invoked (from the command line).

public static final String
PROJECT_NAME

Name of the property holding the name of the currently executing project, if one has been specified.

public static final String
REFID_CLASSPATH_LOADER_PREFIX

Prefix used to store classloader references.

public static final String
REFID_CLASSPATH_REUSE_LOADER

Name of the magic property that controls classloader reuse.

public static final String
REFID_LOCAL_PROPERTIES

Reference used to store the local properties.

public static final String
REFID_PROJECT_HELPER

Name of ProjectHelper reference that we add to a project.

public static final String
REFID_PROPERTY_HELPER

Reference used to store the property helper.

public static final String
REGEXP_IMPL

property for regular expression implementation.

public static final String
REPOSITORY_DIR_PROPERTY

Name of the property which can provide an override of the repository dir.

public static final String
REPOSITORY_URL_PROPERTY

Name of the property which can provide an override of the repository URL.

public static final String
SCRIPT_CACHE

The name of the script cache used by the script runner.

public static final String
SCRIPT_REPOSITORY

The name of the script repository used by the script repo task.

public static final String
SYSTEM_LOADER_REF

The name of the reference to the System Class Loader.

public static final String
TASKDEF_PROPERTIES_RESOURCE

name of the resource that taskdefs are stored under.

public static final String
TMPDIR

Magic property that can be set to override the java.io.tmpdir system property as the location for Ant's default temporary directory.

public static final String
TSTAMP_NOW

Magic property that can be set to contain a value for tstamp's "now" in order to make builds that use the task create reproducible results.

public static final String
TSTAMP_NOW_ISO

Magic property that can be set to contain a value for tstamp's "now" in order to make builds that use the task create reproducible results.

public static final String
TYPEDEFS_PROPERTIES_RESOURCE

name of the resource that typedefs are stored under.

public static final String
WARN_SECURITY_MANAGER_USAGE

When running on Java 18 or higher runtime, Ant will throw a BuildException if the <permissions> type is used.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ANT_CORE_PACKAGEback to summary
public static final String ANT_CORE_PACKAGE

Name of Ant core package Value: org.apache.tools.ant

Since
Ant 1.10.9
ANT_EXECUTOR_CLASSNAMEback to summary
public static final String ANT_EXECUTOR_CLASSNAME

Property defining the classname of an executor. Value: ant.executor.class

ANT_EXECUTOR_REFERENCEback to summary
public static final String ANT_EXECUTOR_REFERENCE

Reference to the current Ant executor. Value: ant.executor

ANT_FILEback to summary
public static final String ANT_FILE

property for ant file name. Value: ant.file

ANT_FILE_TYPEback to summary
public static final String ANT_FILE_TYPE

property for type of ant build file (either file or url) Value: ant.file.type

Since
Ant 1.8.0
ANT_FILE_TYPE_FILEback to summary
public static final String ANT_FILE_TYPE_FILE

ant build file of type file Value: file

Since
Ant 1.8.0
ANT_FILE_TYPE_URLback to summary
public static final String ANT_FILE_TYPE_URL

ant build file of type url Value: url

Since
Ant 1.8.0
ANT_HOMEback to summary
public static final String ANT_HOME

Property used to store the location of ant. Value: ant.home

Since
Ant 1.7
ANT_JAVA_VERSIONback to summary
public static final String ANT_JAVA_VERSION

Property used to store the java version ant is running in. Value: ant.java.version

Since
Ant 1.7
ANT_LIBback to summary
public static final String ANT_LIB

Property used to store the location of the ant library (typically the ant.jar file.) Value: ant.core.lib

Since
Ant 1.7
ANT_SHELL_LAUNCHER_REF_IDback to summary
public static final String ANT_SHELL_LAUNCHER_REF_ID

Name of the project reference holding an instance of org.apache.tools.ant.taskdefs.launcher.CommandLauncher to use when executing commands with the help of an external script.

Alternatively this is the name of a system property holding the fully qualified class name of a org.apache.tools.ant.taskdefs.launcher.CommandLauncher.

Value: ant.shellLauncher
Since
Ant 1.9.0
ANT_VERSIONback to summary
public static final String ANT_VERSION

Ant version property. Value: ant.version

ANT_VM_LAUNCHER_REF_IDback to summary
public static final String ANT_VM_LAUNCHER_REF_ID

Name of the project reference holding an instance of org.apache.tools.ant.taskdefs.launcher.CommandLauncher to use when executing commands without the help of an external script.

Alternatively this is the name of a system property holding the fully qualified class name of a org.apache.tools.ant.taskdefs.launcher.CommandLauncher.

Value: ant.vmLauncher
Since
Ant 1.9.0
ANTLIB_PREFIXback to summary
public static final String ANTLIB_PREFIX

prefix for antlib URIs: antlib:

ATTRIBUTE_NAMESPACEback to summary
public static final String ATTRIBUTE_NAMESPACE

Name of the namespace "type". (Note: cannot be used as an element.)

Since
Ant 1.9.1
AUTO_TMPDIRback to summary
public static final String AUTO_TMPDIR

Magic property that will be set to override java.io.tmpdir system property as the location for Ant's default temporary directory if a temp file is created and TMPDIR is not set. Value: ant.auto.tmpdir

Since
Ant 1.10.9
BUILD_JAVAC_SOURCEback to summary
public static final String BUILD_JAVAC_SOURCE

property that provides the default value for javac's and javadoc's source attribute. Value: ant.build.javac.source

Since
Ant 1.7
BUILD_JAVAC_TARGETback to summary
public static final String BUILD_JAVAC_TARGET

property that provides the default value for javac's target attribute. Value: ant.build.javac.target

Since
Ant 1.7
BUILD_SYSCLASSPATHback to summary
public static final String BUILD_SYSCLASSPATH

System classpath policy. Value: build.sysclasspath

DISABLE_NASHORN_COMPATback to summary
public static final String DISABLE_NASHORN_COMPAT

Magic property that can be used to disable Nashorn compatibility mode when using GraalVM JavaScript as script engine.

Set this to "true" if you want to disable Nashorn compatibility mode.

Value: ant.disable.graal.nashorn.compat
Since
Ant 1.10.9
HTTP_AGENT_PROPERTYback to summary
public static final String HTTP_AGENT_PROPERTY

Name of the property which can provide an override of the User-Agent used in <get> tasks. Value ant.http.agent

PROJECT_BASEDIRback to summary
public static final String PROJECT_BASEDIR

property name for basedir of the project. Value: basedir

PROJECT_DEFAULT_TARGETback to summary
public static final String PROJECT_DEFAULT_TARGET

Name of the property holding the default target of the currently executing project, if one has been specified. Value: ant.project.default-target

Since
Ant 1.8.0
PROJECT_HELPER_CLASSback to summary
public static final String PROJECT_HELPER_CLASS

Name of JVM system property which provides the name of the ProjectHelper class to use. Value: org.apache.tools.ant.ProjectHelper

PROJECT_HELPER_SERVICEback to summary
public static final String PROJECT_HELPER_SERVICE

The service identifier in jars which provide ProjectHelper implementations. Value: META-INF/services/org.apache.tools.ant.ProjectHelper

PROJECT_INVOKED_TARGETSback to summary
public static final String PROJECT_INVOKED_TARGETS

Name of the property holding a comma separated list of targets that have been invoked (from the command line). Value: ant.project.invoked-targets

Since
Ant 1.8.0
PROJECT_NAMEback to summary
public static final String PROJECT_NAME

Name of the property holding the name of the currently executing project, if one has been specified. Value: ant.project.name

Since
Ant 1.8.0
REFID_CLASSPATH_LOADER_PREFIXback to summary
public static final String REFID_CLASSPATH_LOADER_PREFIX

Prefix used to store classloader references. Value: ant.loader.

REFID_CLASSPATH_REUSE_LOADERback to summary
public static final String REFID_CLASSPATH_REUSE_LOADER

Name of the magic property that controls classloader reuse. Value: ant.reuse.loader

Since
Ant 1.4.
REFID_LOCAL_PROPERTIESback to summary
public static final String REFID_LOCAL_PROPERTIES

Reference used to store the local properties. Value: ant.LocalProperties

REFID_PROJECT_HELPERback to summary
public static final String REFID_PROJECT_HELPER

Name of ProjectHelper reference that we add to a project. Value: ant.projectHelper

REFID_PROPERTY_HELPERback to summary
public static final String REFID_PROPERTY_HELPER

Reference used to store the property helper. Value: ant.PropertyHelper

REGEXP_IMPLback to summary
public static final String REGEXP_IMPL

property for regular expression implementation. Value: ant.regexp.regexpimpl

REPOSITORY_DIR_PROPERTYback to summary
public static final String REPOSITORY_DIR_PROPERTY

Name of the property which can provide an override of the repository dir. for the libraries task Value ant.maven.repository.dir

REPOSITORY_URL_PROPERTYback to summary
public static final String REPOSITORY_URL_PROPERTY

Name of the property which can provide an override of the repository URL. for the libraries task Value ant.maven.repository.url

SCRIPT_CACHEback to summary
public static final String SCRIPT_CACHE

The name of the script cache used by the script runner. Value org.apache.ant.scriptcache

SCRIPT_REPOSITORYback to summary
public static final String SCRIPT_REPOSITORY

The name of the script repository used by the script repo task. Value org.apache.ant.scriptrepo

SYSTEM_LOADER_REFback to summary
public static final String SYSTEM_LOADER_REF

The name of the reference to the System Class Loader. Value ant.coreLoader

TASKDEF_PROPERTIES_RESOURCEback to summary
public static final String TASKDEF_PROPERTIES_RESOURCE

name of the resource that taskdefs are stored under. Value: /org/apache/tools/ant/taskdefs/defaults.properties

TMPDIRback to summary
public static final String TMPDIR

Magic property that can be set to override the java.io.tmpdir system property as the location for Ant's default temporary directory. Value: ant.tmpdir

Since
Ant 1.10.8
TSTAMP_NOWback to summary
public static final String TSTAMP_NOW

Magic property that can be set to contain a value for tstamp's "now" in order to make builds that use the task create reproducible results.

The value is expected to be a number representing the date as seconds since the epoch.

Value: ant.tstamp.now
Since
Ant 1.10.2
TSTAMP_NOW_ISOback to summary
public static final String TSTAMP_NOW_ISO

Magic property that can be set to contain a value for tstamp's "now" in order to make builds that use the task create reproducible results.

The value is expected to be in ISO time format (1972-04-17T08:07)

Value: ant.tstamp.now.iso
Since
Ant 1.10.2
TYPEDEFS_PROPERTIES_RESOURCEback to summary
public static final String TYPEDEFS_PROPERTIES_RESOURCE

name of the resource that typedefs are stored under. Value: /org/apache/tools/ant/types/defaults.properties

WARN_SECURITY_MANAGER_USAGEback to summary
public static final String WARN_SECURITY_MANAGER_USAGE

When running on Java 18 or higher runtime, Ant will throw a BuildException if the <permissions> type is used. Set this property to true to disable throwing an exception and instead just log a warning message. Value: ant.securitymanager.usage.warn

Since
Ant 1.10.14

Constructor Detail

MagicNamesback to summary
private MagicNames()