Package org.apache.tools.ant
Class MagicNames
java.lang.Object
org.apache.tools.ant.MagicNames
Magic names used within Ant.
 Not all magic names are here yet.
- Since:
- Ant 1.6
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringName of Ant core package Value: "org.apache.tools.ant"static final StringProperty defining the classname of an executor.static final StringReference to the current Ant executor.static final Stringproperty for ant file name.static final Stringproperty for type of ant build file (either file or url) Value: "ant.file.type"static final Stringant build file of type file Value: "file"static final Stringant build file of type url Value: "url"static final StringProperty used to store the location of ant.static final StringProperty used to store the java version ant is running in.static final StringProperty used to store the location of the ant library (typically the ant.jar file.) Value: "ant.core.lib"static final StringName of the project reference holding an instance ofCommandLauncherto use when executing commands with the help of an external script.static final StringAnt version property.static final StringName of the project reference holding an instance ofCommandLauncherto use when executing commands without the help of an external script.static final Stringprefix for antlib URIs: "antlib:"static final StringName of the namespace "type".static final StringMagic 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 andTMPDIRis not set.static final Stringproperty that provides the default value for javac's and javadoc's source attribute.static final Stringproperty that provides the default value for javac's target attribute.static final StringSystem classpath policy.static final StringMagic property that can be used to disable Nashorn compatibility mode when using GraalVM JavaScript as script engine.static final StringName of the property which can provide an override of the User-Agent used in <get> tasks.static final Stringproperty name for basedir of the project.static final StringName of the property holding the default target of the currently executing project, if one has been specified.static final StringName of JVM system property which provides the name of the ProjectHelper class to use.static final StringThe service identifier in jars which provide ProjectHelper implementations.static final StringName of the property holding a comma separated list of targets that have been invoked (from the command line).static final StringName of the property holding the name of the currently executing project, if one has been specified.static final StringPrefix used to store classloader references.static final StringName of the magic property that controls classloader reuse.static final StringReference used to store the local properties.static final StringName of ProjectHelper reference that we add to a project.static final StringReference used to store the property helper.static final Stringproperty for regular expression implementation.static final StringName of the property which can provide an override of the repository dir.static final StringName of the property which can provide an override of the repository URL.static final StringThe name of the script cache used by the script runner.static final StringThe name of the script repository used by the script repo task.static final StringThe name of the reference to the System Class Loader.static final Stringname of the resource that taskdefs are stored under.static final StringMagic property that can be set to override the java.io.tmpdir system property as the location for Ant's default temporary directory.static final StringMagic 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.static final StringMagic 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.static final Stringname of the resource that typedefs are stored under.static final StringWhen running on Java 18 or higher runtime, Ant will throw aBuildExceptionif thetype is used. 
- 
Method Summary
- 
Field Details- 
ANTLIB_PREFIXprefix for antlib URIs: "antlib:"- See Also:
 
- 
ANT_VERSIONAnt version property. Value: "ant.version"- See Also:
 
- 
BUILD_SYSCLASSPATHSystem classpath policy. Value: "build.sysclasspath"- See Also:
 
- 
SCRIPT_REPOSITORYThe name of the script repository used by the script repo task. Value "org.apache.ant.scriptrepo"- See Also:
 
- 
SCRIPT_CACHEThe name of the script cache used by the script runner. Value "org.apache.ant.scriptcache"- See Also:
 
- 
SYSTEM_LOADER_REFThe name of the reference to the System Class Loader. Value "ant.coreLoader"- See Also:
 
- 
REPOSITORY_DIR_PROPERTYName of the property which can provide an override of the repository dir. for the libraries task Value "ant.maven.repository.dir"- See Also:
 
- 
REPOSITORY_URL_PROPERTYName of the property which can provide an override of the repository URL. for the libraries task Value "ant.maven.repository.url"- See Also:
 
- 
TASKDEF_PROPERTIES_RESOURCEname of the resource that taskdefs are stored under. Value: "/org/apache/tools/ant/taskdefs/defaults.properties"- See Also:
 
- 
TYPEDEFS_PROPERTIES_RESOURCEname of the resource that typedefs are stored under. Value: "/org/apache/tools/ant/types/defaults.properties"- See Also:
 
- 
ANT_EXECUTOR_REFERENCEReference to the current Ant executor. Value: "ant.executor"- See Also:
 
- 
ANT_EXECUTOR_CLASSNAMEProperty defining the classname of an executor. Value: "ant.executor.class"- See Also:
 
- 
PROJECT_BASEDIRproperty name for basedir of the project. Value: "basedir"- See Also:
 
- 
ANT_FILEproperty for ant file name. Value: "ant.file"- See Also:
 
- 
ANT_FILE_TYPEproperty for type of ant build file (either file or url) Value: "ant.file.type"- Since:
- Ant 1.8.0
- See Also:
 
- 
ANT_FILE_TYPE_FILEant build file of type file Value: "file"- Since:
- Ant 1.8.0
- See Also:
 
- 
ANT_FILE_TYPE_URLant build file of type url Value: "url"- Since:
- Ant 1.8.0
- See Also:
 
- 
ANT_JAVA_VERSIONProperty used to store the java version ant is running in. Value: "ant.java.version"- Since:
- Ant 1.7
- See Also:
 
- 
ANT_HOMEProperty used to store the location of ant. Value: "ant.home"- Since:
- Ant 1.7
- See Also:
 
- 
ANT_LIBProperty used to store the location of the ant library (typically the ant.jar file.) Value: "ant.core.lib"- Since:
- Ant 1.7
- See Also:
 
- 
REGEXP_IMPLproperty for regular expression implementation. Value: "ant.regexp.regexpimpl"- See Also:
 
- 
BUILD_JAVAC_SOURCEproperty that provides the default value for javac's and javadoc's source attribute. Value: "ant.build.javac.source"- Since:
- Ant 1.7
- See Also:
 
- 
BUILD_JAVAC_TARGETproperty that provides the default value for javac's target attribute. Value: "ant.build.javac.target"- Since:
- Ant 1.7
- See Also:
 
- 
REFID_CLASSPATH_REUSE_LOADERName of the magic property that controls classloader reuse. Value: "ant.reuse.loader"- Since:
- Ant 1.4.
- See Also:
 
- 
REFID_CLASSPATH_LOADER_PREFIXPrefix used to store classloader references. Value: "ant.loader."- See Also:
 
- 
REFID_PROPERTY_HELPERReference used to store the property helper. Value: "ant.PropertyHelper"- See Also:
 
- 
REFID_LOCAL_PROPERTIESReference used to store the local properties. Value: "ant.LocalProperties"- See Also:
 
- 
ANT_CORE_PACKAGEName of Ant core package Value: "org.apache.tools.ant"- Since:
- Ant 1.10.9
- See Also:
 
- 
PROJECT_HELPER_CLASSName of JVM system property which provides the name of the ProjectHelper class to use. Value: "org.apache.tools.ant.ProjectHelper"- See Also:
 
- 
PROJECT_HELPER_SERVICEThe service identifier in jars which provide ProjectHelper implementations. Value: "META-INF/services/org.apache.tools.ant.ProjectHelper"- See Also:
 
- 
REFID_PROJECT_HELPERName of ProjectHelper reference that we add to a project. Value: "ant.projectHelper"- See Also:
 
- 
PROJECT_NAMEName 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
- See Also:
 
- 
PROJECT_DEFAULT_TARGETName 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
- See Also:
 
- 
PROJECT_INVOKED_TARGETSName 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
- See Also:
 
- 
ANT_SHELL_LAUNCHER_REF_IDName of the project reference holding an instance ofCommandLauncherto 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 Value: "ant.shellLauncher"CommandLauncher.- Since:
- Ant 1.9.0
- See Also:
 
- 
ANT_VM_LAUNCHER_REF_IDName of the project reference holding an instance ofCommandLauncherto 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 Value: "ant.vmLauncher"CommandLauncher.- Since:
- Ant 1.9.0
- See Also:
 
- 
ATTRIBUTE_NAMESPACEName of the namespace "type". (Note: cannot be used as an element.)- Since:
- Ant 1.9.1
- See Also:
 
- 
HTTP_AGENT_PROPERTYName of the property which can provide an override of the User-Agent used in <get> tasks. Value "ant.http.agent"- See Also:
 
- 
TSTAMP_NOWMagic 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
- See Also:
 
- 
TSTAMP_NOW_ISOMagic 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
- See Also:
 
- 
TMPDIRMagic 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
- See Also:
 
- 
AUTO_TMPDIRMagic 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 andTMPDIRis not set. Value: "ant.auto.tmpdir"- Since:
- Ant 1.10.9
- See Also:
 
- 
DISABLE_NASHORN_COMPATMagic 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
- See Also:
 
- 
WARN_SECURITY_MANAGER_USAGEWhen running on Java 18 or higher runtime, Ant will throw aBuildExceptionif thetype is used. Set this property to trueto disable throwing an exception and instead just log a warning message. Value: "ant.securitymanager.usage.warn"- Since:
- Ant 1.10.14
- See Also:
 
 
-