001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: *
017: */
018: package org.apache.tools.ant;
019:
020: import org.apache.tools.ant.launch.Launcher;
021:
022: /**
023: * Magic names used within Ant.
024: *
025: * Not all magic names are here yet.
026: *
027: * @since Ant 1.6
028: */
029: public final class MagicNames {
030:
031: private MagicNames() {
032: }
033:
034: /**
035: * prefix for antlib URIs:
036: * {@value}
037: */
038: public static final String ANTLIB_PREFIX = "antlib:";
039:
040: /**
041: * Ant version property. {@value}
042: */
043: public static final String ANT_VERSION = "ant.version";
044:
045: /**
046: * System classpath policy. {@value}
047: */
048: public static final String BUILD_SYSCLASSPATH = "build.sysclasspath";
049:
050: /**
051: * The name of the script repository used by the script repo task
052: * Value {@value}
053: */
054: public static final String SCRIPT_REPOSITORY = "org.apache.ant.scriptrepo";
055:
056: /**
057: * The name of the reference to the System Class Loader
058: * Value {@value}
059: **/
060: public static final String SYSTEM_LOADER_REF = "ant.coreLoader";
061:
062: /**
063: * Name of the property which can provide an override of the repository dir
064: * for the libraries task
065: * Value {@value}
066: */
067: public static final String REPOSITORY_DIR_PROPERTY = "ant.maven.repository.dir";
068: /**
069: * Name of the property which can provide an override of the repository URL
070: * for the libraries task
071: * Value {@value}
072: */
073: public static final String REPOSITORY_URL_PROPERTY = "ant.maven.repository.url";
074:
075: /**
076: * name of the resource that taskdefs are stored under
077: * Value: {@value}
078: */
079: public static final String TASKDEF_PROPERTIES_RESOURCE = "/org/apache/tools/ant/taskdefs/defaults.properties";
080: /**
081: * name of the resource that typedefs are stored under
082: * Value: {@value}
083: */
084: public static final String TYPEDEFS_PROPERTIES_RESOURCE = "/org/apache/tools/ant/types/defaults.properties";
085:
086: /**
087: * Reference to the current Ant executor
088: * Value: {@value}
089: */
090: public static final String ANT_EXECUTOR_REFERENCE = "ant.executor";
091:
092: /**
093: * Property defining the classname of an executor.
094: * Value: {@value}
095: */
096: public static final String ANT_EXECUTOR_CLASSNAME = "ant.executor.class";
097: /**
098: * property name for basedir of the project
099: * Value: {@value}
100: */
101: public static final String PROJECT_BASEDIR = "basedir";
102: /**
103: * property for ant file name
104: * Value: {@value}
105: */
106: public static final String ANT_FILE = "ant.file";
107:
108: /**
109: * Property used to store the java version ant is running in.
110: * @since Ant 1.7
111: */
112: public static final String ANT_JAVA_VERSION = "ant.java.version";
113:
114: /**
115: * Property used to store the location of ant.
116: * @since Ant 1.7
117: */
118: public static final String ANT_HOME = Launcher.ANTHOME_PROPERTY;
119:
120: /**
121: * Property used to store the location of the ant library (typically the ant.jar file.)
122: * @since Ant 1.7
123: */
124: public static final String ANT_LIB = "ant.core.lib";
125:
126: /**
127: * property for regular expression implementation.
128: * Value: {@value}
129: */
130: public static final String REGEXP_IMPL = "ant.regexp.regexpimpl";
131:
132: /**
133: * property that provides the default value for javac's and
134: * javadoc's source attribute.
135: * @since Ant 1.7
136: * Value: {@value}
137: */
138: public static final String BUILD_JAVAC_SOURCE = "ant.build.javac.source";
139:
140: /**
141: * property that provides the default value for javac's target
142: * attribute.
143: * @since Ant 1.7
144: * Value: {@value}
145: */
146: public static final String BUILD_JAVAC_TARGET = "ant.build.javac.target";
147:
148: /**
149: * Name of the magic property that controls classloader reuse
150: * @since Ant 1.4.
151: * Value: {@value}
152: */
153: public static final String REFID_CLASSPATH_REUSE_LOADER = "ant.reuse.loader";
154:
155: /**
156: * Prefix used to store classloader references.
157: * Value: {@value}
158: */
159: public static final String REFID_CLASSPATH_LOADER_PREFIX = "ant.loader.";
160:
161: /**
162: * Reference used to store the property helper
163: * Value: {@value}
164: */
165: public static final String REFID_PROPERTY_HELPER = "ant.PropertyHelper";
166:
167: }
|