Top Deprecated
Apache Ant Core 1.10.14

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
org.apache.tools.ant.AntClassLoader.initializeClass(final Class<?>
The class to initialize. Must not be null.
theClass
)

since 1.6.x. Use Class.forName with initialize=true instead.

Returns:

the nested exception, or null if no exception is associated with this one
org.apache.tools.ant.BuildException.getException
()

Use getCause instead.

Returns:

true
org.apache.tools.ant.Diagnostics.isOptionalAvailable
()

Obsolete since Ant 1.8.2

Returns:

an instance of the specified element type
org.apache.tools.ant.IntrospectionHelper.createElement
(final Project
Project to which the parent object belongs. Must not be null. If the resulting object is an instance of ProjectComponent, its Project reference is set to this parameter value.
project
,
final Object
Parent object used to create the instance. Must not be null.
parent
,
final String
Name of the element to create an instance of. Must not be null.
elementName
)

since 1.6.x. This is not a namespace aware method.

org.apache.tools.ant.Main.Main(final String[]
Command line arguments. Must not be null.
args
)

since 1.6.x

Returns:

Parent file or null if none
org.apache.tools.ant.Main.getParentFile
(final File
File to find parent of. Must not be null.
file
)

since 1.6.x

org.apache.tools.ant.Project.addFilter(final String
The token to filter. Must not be null.
token
,
final String
The replacement value. Must not be null.
value
)

since 1.4.x. Use getGlobalFilterSet().addFilter(token,value)

org.apache.tools.ant.Project.copyFile(final String
Name of file to copy from. Must not be null.
sourceFile
,
final String
Name of file to copy to. Must not be null.
destFile
)

since 1.4.x

org.apache.tools.ant.Project.copyFile(final String
Name of file to copy from. Must not be null.
sourceFile
,
final String
Name of file to copy to. Must not be null.
destFile
,
final boolean
Whether or not token filtering should be used during the copy.
filtering
)

since 1.4.x

org.apache.tools.ant.Project.copyFile(final String
Name of file to copy from. Must not be null.
sourceFile
,
final String
Name of file to copy to. Must not be null.
destFile
,
final boolean
Whether or not token filtering should be used during the copy.
filtering
,
final boolean
Whether or not the destination file should be overwritten if it already exists.
overwrite
)

since 1.4.x

org.apache.tools.ant.Project.copyFile(final String
Name of file to copy from. Must not be null.
sourceFile
,
final String
Name of file to copy to. Must not be null.
destFile
,
final boolean
Whether or not token filtering should be used during the copy.
filtering
,
final boolean
Whether or not the destination file should be overwritten if it already exists.
overwrite
,
final boolean
Whether or not the last modified time of the resulting file should be set to that of the source file.
preserveLastModified
)

since 1.4.x

org.apache.tools.ant.Project.copyFile(final File
File to copy from. Must not be null.
sourceFile
,
final File
File to copy to. Must not be null.
destFile
)

since 1.4.x

org.apache.tools.ant.Project.copyFile(final File
File to copy from. Must not be null.
sourceFile
,
final File
File to copy to. Must not be null.
destFile
,
final boolean
Whether or not token filtering should be used during the copy.
filtering
)

since 1.4.x

org.apache.tools.ant.Project.copyFile(final File
File to copy from. Must not be null.
sourceFile
,
final File
File to copy to. Must not be null.
destFile
,
final boolean
Whether or not token filtering should be used during the copy.
filtering
,
final boolean
Whether or not the destination file should be overwritten if it already exists.
overwrite
)

since 1.4.x

org.apache.tools.ant.Project.copyFile(final File
File to copy from. Must not be null.
sourceFile
,
final File
File to copy to. Must not be null.
destFile
,
final boolean
Whether or not token filtering should be used during the copy.
filtering
,
final boolean
Whether or not the destination file should be overwritten if it already exists.
overwrite
,
final boolean
Whether or not the last modified time of the resulting file should be set to that of the source file.
preserveLastModified
)

since 1.4.x

Returns:

a hashtable of global filters, mapping tokens to values (String to String).
org.apache.tools.ant.Project.getFilters
()

since 1.4.x Use getGlobalFilterSet().getFilterHash().

Returns:

the version of Java as a String, e.g. "1.1" .
org.apache.tools.ant.Project.getJavaVersion
()

since 1.5.x. Use org.apache.tools.ant.util.JavaEnvUtils instead.

Returns:

the resolved File.
org.apache.tools.ant.Project.resolveFile
(final String
The name of the file to resolve. Must not be null.
fileName
,
final File
The directory respective to which relative file names are resolved. May be null, in which case the current directory is used.
rootDir
)

since 1.4.x

org.apache.tools.ant.Project.setDefaultTarget(final String
The name of the default target for this project. May be null, indicating that there is no default target.
defaultTarget
)

since 1.5.x. Use setDefault.

org.apache.tools.ant.Project.setFileLastModified(final File
The file to set the last modified time on. Must not be null.
file
,
final long
the required modification time.
time
)

since 1.4.x

Returns:

the native version of the specified path or an empty string if the path is null or empty.
org.apache.tools.ant.Project.translatePath
(final String
The path to be translated. May be null.
toProcess
)

since 1.7 Use FileUtils.translatePath instead.

org.apache.tools.ant.ProjectComponent.description

since 1.6.x. You should not be accessing this variable directly.

org.apache.tools.ant.ProjectComponent.location

since 1.6.x. You should not be accessing this variable directly. Please use the getLocation() method.

org.apache.tools.ant.ProjectComponent.project

since 1.6.x. You should not be directly accessing this variable directly. You should access project object via the getProject() or setProject() accessor/mutators.

org.apache.tools.ant.ProjectHelper.HELPER_PROPERTY

use MagicNames.PROJECT_HELPER_CLASS

org.apache.tools.ant.ProjectHelper.SERVICE_ID

use MagicNames.PROJECT_HELPER_SERVICE

org.apache.tools.ant.ProjectHelper.configure(Object
The target object to be configured. Must not be null.
target
,
AttributeList
A list of attributes to configure within the target. Must not be null.
attrs
,
Project
The project containing the target. Must not be null.
project
)

since 1.6.x. Use IntrospectionHelper for each property.

Returns:

the current context class loader, or null if the context class loader is unavailable.
org.apache.tools.ant.ProjectHelper.getContextClassLoader
()

since 1.6.x. Use LoaderUtils.getContextClassLoader()

org.apache.tools.ant.ProjectHelper.parsePropertyString(String
Text to parse. Must not be null.
value
,
Vector<String>
List to add text fragments to. Must not be null.
fragments
,
Vector<String>
List to add property names to. Must not be null.
propertyRefs
)

since 1.6.x. Use PropertyHelper.

Returns:

the original string with the properties replaced, or null if the original string is null.
org.apache.tools.ant.ProjectHelper.replaceProperties
(Project
The project containing the properties to replace. Must not be null.
project
,
String
The string to be scanned for property references. May be null.
value
)

since 1.6.x. Use project.replaceProperties().

Returns:

the original string with the properties replaced, or null if the original string is null.
org.apache.tools.ant.ProjectHelper.replaceProperties
(Project
The container project. This is used solely for logging purposes. Must not be null.
project
,
String
The string to be scanned for property references. May be null, in which case this method returns immediately with no effect.
value
,
Hashtable<String, Object>
Mapping (String to Object) of property names to their values. Must not be null.
keys
)

since 1.6.x. Use PropertyHelper.

Returns:

the next property helper.
org.apache.tools.ant.PropertyHelper.getNext
()

use the delegate mechanism instead

Returns:

the property value, or null for no match or if a null name is provided.
org.apache.tools.ant.PropertyHelper.getProperty
(String
The namespace for the property (currently not used).
ns
,
String
The name of the property. May be null, in which case the return value is also null.
name
)

namespaces are unnecessary.

Returns:

The property, if returned by a hook, or null if none.
org.apache.tools.ant.PropertyHelper.getPropertyHook
(String
namespace of the sought property.
ns
,
String
name of the sought property.
name
,
boolean
True if this is a user property.
user
)

PropertyHelper chaining is deprecated.

Returns:

the property value, or null for no match or if a null name is provided.
org.apache.tools.ant.PropertyHelper.getUserProperty
(String
The namespace for the property (currently not used).
ns
,
String
The name of the property. May be null, in which case the return value is also null.
name
)

namespaces are unnecessary.

org.apache.tools.ant.PropertyHelper.parsePropertyString(String
Text to parse. Must not be null.
value
,
Vector<String>
List to add text fragments to. Must not be null.
fragments
,
Vector<String>
List to add property names to. Must not be null.
propertyRefs
)

use the other mechanisms of this class instead

org.apache.tools.ant.PropertyHelper.setInheritedProperty(String
The namespace for the property (currently not used).
ns
,
String
The name of property to set. Must not be null.
name
,
Object
The new value of the property. Must not be null.
value
)

namespaces are unnecessary.

org.apache.tools.ant.PropertyHelper.setNewProperty(String
The namespace for the property (currently not used).
ns
,
String
The name of property to set. Must not be null.
name
,
Object
The new value of the property. Must not be null.
value
)

namespaces are unnecessary.

org.apache.tools.ant.PropertyHelper.setNext(PropertyHelper
the next property helper in the chain.
next
)

use the delegate mechanism instead

Returns:

true if the property is set.
org.apache.tools.ant.PropertyHelper.setProperty
(String
The namespace for the property (currently not used).
ns
,
String
The name of the property.
name
,
Object
The value to set the property to.
value
,
boolean
If this is true output extra log messages.
verbose
)

namespaces are unnecessary.

Returns:

true if this helper has stored the property, false if it couldn't. Each helper should delegate to the next one (unless it has a good reason not to).
org.apache.tools.ant.PropertyHelper.setPropertyHook
(String
The namespace that the property is in (currently not used.
ns
,
String
The name of property to set. Must not be null.
name
,
Object
The new value of the property. Must not be null.
value
,
boolean
True if this property is inherited (an [sub]ant[call] property).
inherited
,
boolean
True if this property is a user property.
user
,
boolean
True is this is a new property.
isNew
)

PropertyHelper chaining is deprecated.

org.apache.tools.ant.PropertyHelper.setUserProperty(String
The namespace for the property (currently not used).
ns
,
String
The name of property to set. Must not be null.
name
,
Object
The new value of the property. Must not be null.
value
)

namespaces are unnecessary.

Returns:

An AttributeList representing the attributes defined in the XML for this element. May be null.
org.apache.tools.ant.RuntimeConfigurable.getAttributes
()

Deprecated since Ant 1.6 in favor of getAttributeMap.

org.apache.tools.ant.RuntimeConfigurable.setAttributes(AttributeList
List of attributes defined in the XML for this element. May be null.
attributes
)

since 1.6.x.

org.apache.tools.ant.Task.target

since 1.6.x. You should not be accessing this variable directly. Please use the getOwningTarget() method.

org.apache.tools.ant.Task.taskName

since 1.6.x. You should not be accessing this variable directly. Please use the getTaskName() method.

org.apache.tools.ant.Task.taskType

since 1.6.x. You should not be accessing this variable directly. Please use the getTaskType() method.

org.apache.tools.ant.Task.wrapper

since 1.6.x. You should not be accessing this variable directly. Please use the getWrapper() method.

org.apache.tools.ant.helper.ProjectHelperImpl.AbstractHandler

Deprecated as a consequence of HandlerBase being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.AbstractHandler.AbstractHandler(ProjectHelperImpl
the ProjectHelperImpl instance associated with this handler.
helperImpl
,
DocumentHandler
The handler which should be restored to the parser at the end of the element. Must not be null.
parentHandler
)

Deprecated as a consequence of DocumentHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.AbstractHandler.parentHandler

Deprecated as a consequence of DocumentHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.AbstractHandler.startElement(String
The name of the element being started. Will not be null.
tag
,
AttributeList
Attributes of the element being started. Will not be null.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.DataTypeHandler

Deprecated as a consequence of ProjectHelperImpl.AbstractHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.DataTypeHandler.DataTypeHandler(ProjectHelperImpl helperImpl, DocumentHandler
The handler which should be restored to the parser at the end of the element. Must not be null.
parentHandler
,
Target
The parent target of this element. Must not be null.
target
)

Deprecated as a consequence of DocumentHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.DataTypeHandler.init(String
Name of the element which caused this handler to be created. Must not be null.
propType
,
AttributeList
Attributes of the element which caused this handler to be created. Must not be null.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.DataTypeHandler.startElement(String
The name of the element being started. Will not be null.
name
,
AttributeList
Attributes of the element being started. Will not be null.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.DescriptionHandler

Deprecated as a consequence of ProjectHelperImpl.AbstractHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.DescriptionHandler.DescriptionHandler(ProjectHelperImpl helperImpl, DocumentHandler
The handler which should be restored to the parser at the end of the element. Must not be null.
parentHandler
)

Deprecated as a consequence of DocumentHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.NestedElementHandler

Deprecated as a consequence of ProjectHelperImpl.AbstractHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.NestedElementHandler.NestedElementHandler(ProjectHelperImpl helperImpl, DocumentHandler
The handler which should be restored to the parser at the end of the element. Must not be null.
parentHandler
,
Object
Parent of this element (task/data type/etc). Must not be null.
parent
,
RuntimeConfigurable
Wrapper for the parent element, if any. Must not be null.
parentWrapper
,
Target
Target this element is part of. Must not be null.
target
)

Deprecated as a consequence of DocumentHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.NestedElementHandler.init(String
Name of the element which caused this handler to be created. Must not be null.
propType
,
AttributeList
Attributes of the element which caused this handler to be created. Must not be null.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.NestedElementHandler.startElement(String
The name of the element being started. Will not be null.
name
,
AttributeList
Attributes of the element being started. Will not be null.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.ProjectHandler

Deprecated as a consequence of ProjectHelperImpl.AbstractHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.ProjectHandler.ProjectHandler(ProjectHelperImpl helperImpl, DocumentHandler
The handler which should be restored to the parser at the end of the element. Must not be null.
parentHandler
)

Deprecated as a consequence of DocumentHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.ProjectHandler.handleTarget(String
The name of the element to be handled. Will not be null.
tag
,
AttributeList
Attributes of the element to be handled. Will not be null.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.ProjectHandler.init(String
Name of the element which caused this handler to be created. Should not be null. Ignored in this implementation.
tag
,
AttributeList
Attributes of the element which caused this handler to be created. Must not be null.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.ProjectHandler.startElement(String
The name of the element being started. Will not be null.
name
,
AttributeList
Attributes of the element being started. Will not be null.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.RootHandler

Deprecated as a consequence of HandlerBase being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.RootHandler.startElement(String
The name of the element being started. Will not be null.
tag
,
AttributeList
Attributes of the element being started. Will not be null.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.TargetHandler

Deprecated as a consequence of ProjectHelperImpl.AbstractHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.TargetHandler.TargetHandler(ProjectHelperImpl helperImpl, DocumentHandler
The handler which should be restored to the parser at the end of the element. Must not be null.
parentHandler
)

Deprecated as a consequence of DocumentHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.TargetHandler.init(String
Name of the element which caused this handler to be created. Should not be null. Ignored in this implementation.
tag
,
AttributeList
Attributes of the element which caused this handler to be created. Must not be null.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.TargetHandler.startElement(String
The name of the element being started. Will not be null.
name
,
AttributeList
Attributes of the element being started. Will not be null.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.TaskHandler

Deprecated as a consequence of ProjectHelperImpl.AbstractHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.TaskHandler.TaskHandler(ProjectHelperImpl helperImpl, DocumentHandler
The handler which should be restored to the parser at the end of the element. Must not be null.
parentHandler
,
TaskContainer
Container for the element. Must not be null.
container
,
RuntimeConfigurable
Wrapper for the parent element, if any. May be null.
parentWrapper
,
Target
Target this element is part of. Must not be null.
target
)

Deprecated as a consequence of DocumentHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.TaskHandler.init(String
Name of the element which caused this handler to be created. Must not be null.
tag
,
AttributeList
Attributes of the element which caused this handler to be created. Must not be null.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.TaskHandler.startElement(String
The name of the element being started. Will not be null.
name
,
AttributeList
Attributes of the element being started. Will not be null.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.configureId(Object target, AttributeList attr)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.handleElement(ProjectHelperImpl helperImpl, DocumentHandler parent, Target target, String elementName, AttributeList attrs)

Deprecated as a consequence of DocumentHandler and AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.helper.ProjectHelperImpl.parser

Deprecated as a consequence of Parser being deprecated. See corresponding docs for further information.

org.apache.tools.ant.input.MultipleChoiceInputRequest.MultipleChoiceInputRequest(String
The prompt to show to the user. Must not be null.
prompt
,
Vector<String>
holds all input values that are allowed. Must not be null.
choices
)

Use MultipleChoiceInputRequest(String, Collection) instead

org.apache.tools.ant.property.ResolvePropertyMap.resolveAllProperties(Map<String, Object>
the map to resolve properties in.
map
)

since Ant 1.8.2, use the three-arg method instead.

org.apache.tools.ant.property.ResolvePropertyMap.resolveAllProperties(Map<String, Object>
the map to resolve properties in.
map
,
String
the prefix the properties defined inside the map will finally receive - may be null.
prefix
)

since Ant 1.8.2, use the three-arg method instead.

org.apache.tools.ant.taskdefs.Available.setType(String
the type of resource
type
)

since 1.5.x. setType(String) is deprecated and is replaced with setType(Available.FileDir) to make Ant's Introspection mechanism do the work and also to encapsulate operations on the type in its own class.

org.apache.tools.ant.taskdefs.Classloader.setReverse(boolean
if true reverse the normal classloader lookup.
b
)

use setParentFirst with a negated argument instead

org.apache.tools.ant.taskdefs.Concat.setForce(boolean
if true always overwrite, otherwise only overwrite if the output file is older any of the input files.
forceOverwrite
)

use #setOverwrite instead

org.apache.tools.ant.taskdefs.Copy.setPreserveLastModified(final String
a boolean string.
preserve
)

since 1.5.x. setPreserveLastModified(String) has been deprecated and replaced with setPreserveLastModified(boolean) to consistently let the Introspection mechanism work.

org.apache.tools.ant.taskdefs.CopyPath

this task should have never been released and was obsoleted by ResourceCollection support in Copy available since Ant 1.7.0. Don't use it.

org.apache.tools.ant.taskdefs.Copydir

The copydir task is deprecated since Ant 1.2. Use copy instead.

org.apache.tools.ant.taskdefs.Copyfile

The copyfile task is deprecated since Ant 1.2. Use copy instead.

org.apache.tools.ant.taskdefs.DefBase.setReverseLoader(boolean
if true a delegated loader will take precedence over the parent
reverseLoader
)

since 1.6.x. stop using this attribute

org.apache.tools.ant.taskdefs.Deltree

The deltree task is deprecated since Ant 1.2. Use delete instead.

org.apache.tools.ant.taskdefs.Ear.setEarfile(File
the destination file
earFile
)

since 1.5.x. Use setDestFile(destfile) instead.

org.apache.tools.ant.taskdefs.Exec

since 1.2. delegate to Execute instead.

Returns:

a vector containing the environment variables. The vector elements are strings formatted like variable = value.
org.apache.tools.ant.taskdefs.Execute.getProcEnvironment
()

use #getEnvironmentVariables instead

org.apache.tools.ant.taskdefs.Execute.setSpawn(boolean
if true you do not want Ant to wait for the end of the process. Has no influence in here, the calling task contains and acts accordingly
spawn
)

org.apache.tools.ant.taskdefs.ExecuteJava.setOutput(PrintStream
the PrintStream where output should be sent.
out
)

since 1.4.x. manage output at the task level.

org.apache.tools.ant.taskdefs.ExecuteWatchdog.ExecuteWatchdog(int
the timeout value to use in milliseconds.
timeout
)

since 1.5.x. Use constructor with a long type instead. (1.4.x compatibility)

org.apache.tools.ant.taskdefs.FixCRLF.setCr(FixCRLF.AddAsisRemove
valid values:
  • add: ensure that there is a CR before every LF
  • asis: leave CR characters alone
  • remove: remove all CR characters
attr
)

since 1.4.x. Use setEol instead.

Returns:

true for a successful download, false otherwise. The return value is only relevant when ignoreErrors is true, as when false all failures raise BuildExceptions.
org.apache.tools.ant.taskdefs.Get.doGet
(final int
level to log at, see Project#log(String, int)
logLevel
,
final Get.DownloadProgress
progress callback; null for no-callbacks
progress
)

only gets the first configured resource

org.apache.tools.ant.taskdefs.Jar.setJarfile(File
the destination file
jarFile
)

since 1.5.x. Use setDestFile(File) instead.

org.apache.tools.ant.taskdefs.Javadoc.setExtdirs(final String
the string version of the path.
path
)

since 1.5.x. Use the setExtdirs(Path) version.

org.apache.tools.ant.taskdefs.Jikes

since 1.2. Merged into the class Javac.

org.apache.tools.ant.taskdefs.Jikes.Jikes(JikesOutputParser
Parser to send jike's output to
jop
,
String
name of jikes executable
command
,
Project
the current project
project
)

Deprecated as a consequence of JikesOutputParser being deprecated. See corresponding docs for further information.

org.apache.tools.ant.taskdefs.Jikes.jop

Deprecated as a consequence of JikesOutputParser being deprecated. See corresponding docs for further information.

org.apache.tools.ant.taskdefs.JikesOutputParser

since 1.2. Use Jikes' exit value to detect compilation failure.

org.apache.tools.ant.taskdefs.KeySubst

KeySubst is deprecated since Ant 1.1. Use Filter + Copy instead.

org.apache.tools.ant.taskdefs.PathConvert.setTargetos(String
the target os.
target
)

since 1.5.x. Use the method taking a TargetOs argument instead.

org.apache.tools.ant.taskdefs.Property.setUserProperty(boolean
ignored
userProperty
)

since 1.5.x. This was never a supported feature and has been deprecated without replacement.

org.apache.tools.ant.taskdefs.Rename

The rename task is deprecated since Ant 1.2. Use move instead.

org.apache.tools.ant.taskdefs.SQLExec.printResults(PrintStream
the place to print results
out
)

since 1.6.x. Use the two arg version instead.

org.apache.tools.ant.taskdefs.SendEmail.setMailport(Integer
mail port name.
value
)

since 1.5.x. Use setMailport(int) instead.

org.apache.tools.ant.taskdefs.Tar.FAIL

since 1.5.x. Tar.FAIL is deprecated and is replaced with Tar.TarLongFileMode.FAIL

org.apache.tools.ant.taskdefs.Tar.GNU

since 1.5.x. Tar.GNU is deprecated and is replaced with Tar.TarLongFileMode.GNU

org.apache.tools.ant.taskdefs.Tar.OMIT

since 1.5.x. Tar.OMIT is deprecated and is replaced with Tar.TarLongFileMode.OMIT

org.apache.tools.ant.taskdefs.Tar.TRUNCATE

since 1.5.x. Tar.TRUNCATE is deprecated and is replaced with Tar.TarLongFileMode.TRUNCATE

org.apache.tools.ant.taskdefs.Tar.WARN

since 1.5.x. Tar.WARN is deprecated and is replaced with Tar.TarLongFileMode.WARN

Returns:

true if the archive is up to date.
org.apache.tools.ant.taskdefs.Tar.archiveIsUpToDate
(final String[]
the files to check
files
)

since 1.5.x. use the two-arg version instead.

org.apache.tools.ant.taskdefs.Tar.setLongfile(final String
the mode string to handle long files.
mode
)

since 1.5.x. setLongFile(String) is deprecated and is replaced with setLongFile(Tar.TarLongFileMode) to make Ant's Introspection mechanism do the work and also to encapsulate operations on the mode in its own class.

org.apache.tools.ant.taskdefs.Tar.setTarfile(final File
the location of the tar file.
tarFile
)

since 1.5.x. For consistency with other tasks, please use setDestFile().

org.apache.tools.ant.taskdefs.TaskOutputStream

since 1.2.x. Use LogOutputStream instead.

org.apache.tools.ant.taskdefs.Touch.touch(File
file to touch
file
)

since 1.6.x.

org.apache.tools.ant.taskdefs.Tstamp.CustomFormat.setUnit(String
the unit to use.
unit
)

since 1.5.x. setUnit(String) is deprecated and is replaced with setUnit(Tstamp.Unit) to make Ant's Introspection mechanism do the work and also to encapsulate operations on the unit in its own class.

org.apache.tools.ant.taskdefs.Unpack.setDest(String
a String value
dest
)

since 1.5.x. setDest(String) is deprecated and is replaced with setDest(File) to make Ant's Introspection mechanism do the work and also to encapsulate operations on the type in its own class.

org.apache.tools.ant.taskdefs.Unpack.setSrc(String
a String value
src
)

since 1.5.x. setSrc(String) is deprecated and is replaced with setSrc(File) to make Ant's Introspection mechanism do the work and also to encapsulate operations on the type in its own class.

org.apache.tools.ant.taskdefs.War.setWarfile(File
the destination file
warFile
)

since 1.5.x. Use setDestFile(File) instead

org.apache.tools.ant.taskdefs.XSLTProcess.configureLiaison(final File
the file from which to load the stylesheet.
stylesheet
)

since Ant 1.7

org.apache.tools.ant.taskdefs.Zip.setFile(final File
the path of the zipFile
file
)

since 1.5.x. Use setDestFile(File) instead.

org.apache.tools.ant.taskdefs.Zip.setZipfile(final File
the path of the zipFile
zipFile
)

since 1.5.x. Use setDestFile(File) instead.

org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.addExtdirsToClasspath(final Path
the classpath to use
classpath
)

since 1.5.x. Use org.apache.tools.ant.types.Path#addExtdirs instead.

Returns:

true if jdk 1.1
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.assumeJava11
()

since Ant 1.10.7, use assumeJava1_1Plus, if necessary combined with !assumeJava1_2Plus

Returns:

true if jdk 1.2
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.assumeJava12
()

since Ant 1.10.7, use assumeJava1_2Plus, if necessary combined with !assumeJava1_3Plus

Returns:

true if jdk 1.3
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.assumeJava13
()

since Ant 1.10.7, use assumeJava1_3Plus, if necessary combined with !assumeJava1_4Plus

Returns:

true if jdk 1.4
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.assumeJava14
()

since Ant 1.10.7, use assumeJava1_4Plus, if necessary combined with !assumeJava1_5Plus

Returns:

true if JDK 1.5
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.assumeJava15
()

since Ant 1.10.7, use assumeJava1_5Plus, if necessary combined with !assumeJava1_6Plus

Returns:

true if JDK 1.6
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.assumeJava16
()

since Ant 1.10.7, use assumeJava1_6Plus, if necessary combined with !assumeJava1_7Plus

Returns:

true if JDK 1.7
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.assumeJava17
()

since Ant 1.10.7, use assumeJava1_7Plus, if necessary combined with !assumeJava1_8Plus

Returns:

true if JDK 1.8
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.assumeJava18
()

since Ant 1.10.7, use assumeJava1_8Plus, if necessary combined with !assumeJava9Plus

Returns:

true if JDK 9
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.assumeJava9
()

since Ant 1.10.7, use assumeJava9Plus, in the future if necessary combined with !assumeJava10Plus

org.apache.tools.ant.taskdefs.optional.ReplaceRegExp.setByLine(String
the byline attribute as a string
byline
)

since 1.6.x. Use setByLine(boolean).

Returns:

the systemid
org.apache.tools.ant.taskdefs.optional.TraXLiaison.getSystemId
(final File
the filename to use for the systemid
file
)

since 1.5.x. Use org.apache.tools.ant.util.JAXPUtils#getSystemId instead.

Returns:

output of the command line
org.apache.tools.ant.taskdefs.optional.clearcase.ClearCase.runS
(Commandline
command line to execute
cmdline
)

use the two arg version instead

Returns:

the descriptor.
org.apache.tools.ant.taskdefs.optional.ejb.BorlandDeploymentTool.getBorlandDescriptorHandler
(final File
the source directory.
srcDir
)

Deprecated as a consequence of DescriptorHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.taskdefs.optional.ejb.DescriptorHandler

Deprecated as a consequence of HandlerBase being deprecated.

org.apache.tools.ant.taskdefs.optional.ejb.DescriptorHandler.startElement(String
The name of the element being entered.
name
,
AttributeList
Attributes associated to the element.
attrs
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

Returns:

a handler.
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.getDescriptorHandler
(File
the source directory.
srcDir
)

Deprecated as a consequence of DescriptorHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.handler

Deprecated as a consequence of DescriptorHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.registerKnownDTDs(DescriptorHandler
no used in this class.
handler
)

Deprecated as a consequence of DescriptorHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbc.EjbcHandler

Deprecated as a consequence of HandlerBase being deprecated. See corresponding docs for further information.

org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbc.EjbcHandler.startElement(String
String name of the element found.
name
,
AttributeList
AttributeList of the attributes included with the element (if any).
atts
)

Deprecated as a consequence of AttributeList being deprecated. See corresponding docs for further information.

org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbc.handler

Deprecated as a consequence of IPlanetEjbc.EjbcHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.taskdefs.optional.ejb.JonasDeploymentTool.registerKnownDTDs(DescriptorHandler
no used in this class.
handler
)

Deprecated as a consequence of DescriptorHandler being deprecated. See corresponding docs for further information.

Returns:

the descriptor.
org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool.getWeblogicDescriptorHandler
(final File
the source directory.
srcDir
)

Deprecated as a consequence of DescriptorHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool.registerKnownDTDs(DescriptorHandler
the handler to use.
handler
)

Deprecated as a consequence of DescriptorHandler being deprecated. See corresponding docs for further information.

Returns:

the descriptor handler.
org.apache.tools.ant.taskdefs.optional.ejb.WeblogicTOPLinkDeploymentTool.getDescriptorHandler
(File
the source file.
srcDir
)

Deprecated as a consequence of DescriptorHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.taskdefs.optional.ejb.WebsphereDeploymentTool.getDescriptorHandler(File
the source directory.
srcDir
)

Deprecated as a consequence of DescriptorHandler being deprecated. See corresponding docs for further information.

Returns:

the handler.
org.apache.tools.ant.taskdefs.optional.ejb.WebsphereDeploymentTool.getWebsphereDescriptorHandler
(final File
the source directory.
srcDir
)

Deprecated as a consequence of DescriptorHandler being deprecated. See corresponding docs for further information.

org.apache.tools.ant.taskdefs.optional.extension.DeweyDecimal

use org.apache.tools.ant.util.DeweyDecimal instead. Deprecated since ant 1.8

org.apache.tools.ant.taskdefs.optional.script.ScriptDef.executeScript(Map<String, String>
collection of attributes
attributes
,
Map<String, List<Object>>
a list of nested element values.
elements
)

since 1.7. Use executeScript(attribute, elements, instance) instead.

Returns:

the dir mode.
org.apache.tools.ant.types.ArchiveFileSet.getDirMode
()

since 1.7.

Returns:

the file mode.
org.apache.tools.ant.types.ArchiveFileSet.getFileMode
()

since 1.7.

Returns:

the full pathname.
org.apache.tools.ant.types.ArchiveFileSet.getFullpath
()

since 1.7.

Returns:

the total number of arguments in the java command line.
org.apache.tools.ant.types.CommandlineJava.size
()

since 1.7. Please don't use this, it effectively creates the entire command.

org.apache.tools.ant.types.DataType.checked

since 1.7. The user should not be directly referencing variable. Please use setChecked or isChecked instead.

Returns:

the dereferenced object.
org.apache.tools.ant.types.DataType.getCheckedRef
()

use getCheckedRef(Class)

Returns:

the dereferenced object.
org.apache.tools.ant.types.DataType.getCheckedRef
(Project
the Ant Project instance against which to resolve references.
p
)

use getCheckedRef(Class)

org.apache.tools.ant.types.DataType.ref

since 1.7. The user should not be directly referencing variable. Please use getRefid instead.

Returns:

the referenced Mapper
org.apache.tools.ant.types.Mapper.getRef
()

since Ant 1.7.1 because a mapper might ref a FileNameMapper implementation directly.

org.apache.tools.ant.types.Permissions.MySM

Deprecated as a consequence of SecurityManager being deprecated. See corresponding docs for further information.

org.apache.tools.ant.types.Permissions.origSm

Deprecated as a consequence of SecurityManager being deprecated. See corresponding docs for further information.

org.apache.tools.ant.types.Reference.Reference(String
the name of this reference
id
)

since 1.7. Please use Reference#Reference(Project, String) instead.

Returns:

the uid for the tar entry
org.apache.tools.ant.types.resources.TarResource.getGid
()

Returns:

the uid for the tar entry
org.apache.tools.ant.types.resources.TarResource.getUid
()

Returns:

a Collection of Resources.
org.apache.tools.ant.types.resources.Union.getCollection
(boolean
indicates whether the resulting Collection should contain Strings instead of Resources.
asString
)

Returns:

an enumeration representing e1 followed by e2.
org.apache.tools.ant.util.CollectionUtils.append
(Enumeration<E>
the first enumeration.
e1
,
Enumeration<E>
the subsequent enumeration.
e2
)

use Stream.concat(Collections.list(e1).stream(), Collections.list(e2).stream()) .collect(Collectors.collectingAndThen(Collectors.toList(), Collections::enumeration))

Returns:

the collection
org.apache.tools.ant.util.CollectionUtils.asCollection
(final Iterator<? extends T>
the Iterator to convert
iter
)

instantiate a list and use forEachRemaining(list::add)

Returns:

an Enumeration.
org.apache.tools.ant.util.CollectionUtils.asEnumeration
(final Iterator<E>
the Iterator to adapt.
iter
)

use Collections.enumeration()

Returns:

an Iterator.
org.apache.tools.ant.util.CollectionUtils.asIterator
(final Enumeration<E>
the Enumeration to adapt.
e
)

use Collections.list(e).iterator()

Returns:

true if the vectors are equal.
org.apache.tools.ant.util.CollectionUtils.equals
(Vector<?>
the first vector.
v1
,
Vector<?>
the second vector.
v2
)

since 1.6.x.

Returns:

true if the directories are equal.
org.apache.tools.ant.util.CollectionUtils.equals
(Dictionary<?, ?>
the first directory.
d1
,
Dictionary<?, ?>
the second directory.
d2
)

since 1.6.x.

Returns:

string representation of the collection
org.apache.tools.ant.util.CollectionUtils.flattenToString
(Collection<?>
collection to transform
c
)

use stream().collect(Collectors.joining(","))

Returns:

frequency
org.apache.tools.ant.util.CollectionUtils.frequency
(Collection<?>
collection in which to search
c
,
Object
object to search
o
)

org.apache.tools.ant.util.CollectionUtils.putAll(Dictionary<? super K, ? super V>
the to directory.
m1
,
Dictionary<? extends K, ? extends V>
the from directory.
m2
)

since 1.6.x.

org.apache.tools.ant.util.DateUtils.DATE_HEADER_FORMAT

DateFormat is not thread safe, and we cannot guarantee that some other code is using the format in parallel. Deprecated since ant 1.8

Returns:

a File reference to the new, nonexistent temporary file.
org.apache.tools.ant.util.FileUtils.createTempFile
(String
file name prefix.
prefix
,
String
file extension; include the '.'.
suffix
,
File
Directory to create the temporary file in; java.io.tmpdir used if not specified.
parentDir
)

since ant 1.7.1 use createTempFile(Project, String, String, File, boolean, boolean) instead.

Returns:

a File reference to the new temporary file.
org.apache.tools.ant.util.FileUtils.createTempFile
(String
file name prefix.
prefix
,
String
file extension; include the '.'.
suffix
,
File
Directory to create the temporary file in; java.io.tmpdir used if not specified.
parentDir
,
boolean
whether to set the tempfile for deletion on normal VM exit.
deleteOnExit
,
boolean
true if the file must actually be created. If false chances exist that a file with the same name is created in the time between invoking this method and the moment the file is actually created. If possible set to true.
createFile
)

since Ant 1.10.8 use createTempFile(Project, String, String, File, boolean, boolean) instead.

Returns:

a File reference to the new, nonexistent temporary file.
org.apache.tools.ant.util.FileUtils.createTempFile
(String
file name prefix.
prefix
,
String
file extension; include the '.'.
suffix
,
File
Directory to create the temporary file in; java.io.tmpdir used if not specified.
parentDir
,
boolean
whether to set the tempfile for deletion on normal VM exit.
deleteOnExit
)

since ant 1.7.1 use createTempFile(Project, String, String, File, boolean, boolean) instead.

Returns:

the given file's parent, or null if the file does not have a parent.
org.apache.tools.ant.util.FileUtils.getParentFile
(File
the file whose parent is required.
f
)

since 1.7. Just use File#getParentFile directly.

Returns:

a new instance of FileUtils.
org.apache.tools.ant.util.FileUtils.newFileUtils
()

since 1.7. Use getFileUtils instead, FileUtils do not have state.

Returns:

a SAX 1 Parser.
org.apache.tools.ant.util.JAXPUtils.getParser
()

Deprecated as a consequence of Parser being deprecated. See corresponding docs for further information.

Returns:

the version of Java as a number 10x the major/minor, e.g Java1.5 has a value of 15 and Java9 the value 90 - major will be 1 for all versions of Java prior to Java 9, minor will be 0 for all versions of Java starting with Java 9.
org.apache.tools.ant.util.JavaEnvUtils.getJavaVersionNumber
()

use #getParsedJavaVersion instead

Returns:

the created script runner.
org.apache.tools.ant.util.ScriptRunnerCreator.createRunner
(String
the script manager ("auto" | "bsf" | "javax")
manager
,
String
the language.
language
,
ClassLoader
the classloader to use
classLoader
)

Use createRunner(ScriptManager, String, ClassLoader) instead

org.apache.tools.ant.util.ScriptRunnerHelper.setManager(String
the scripting manager - "bsf" or "javax" or "auto"
manager
)

Returns:

the new string with replaced occurrences.
org.apache.tools.ant.util.StringUtils.replace
(String
the string to replace occurrences into
data
,
String
the occurrence to replace.
from
,
String
the occurrence to be used as a replacement.
to
)

Use String#replace(CharSequence, CharSequence) now.

org.apache.tools.ant.util.SymbolicLinkUtils

Starting Ant 1.10.2, this class is now deprecated in favour of the Java java.nio.file.Files APIs introduced in Java 7, for dealing with symbolic links

org.apache.tools.ant.util.SymbolicLinkUtils.PRIMARY_INSTANCE

Deprecated as a consequence of SymbolicLinkUtils being deprecated. See corresponding docs for further information.

Returns:

an instance of SymbolicLinkUtils.
org.apache.tools.ant.util.SymbolicLinkUtils.getSymbolicLinkUtils
()

Deprecated as a consequence of SymbolicLinkUtils being deprecated. See corresponding docs for further information.

org.apache.tools.ant.util.WeakishReference

deprecated 1.7; will be removed in Ant1.8 Just use java.lang.ref.WeakReference directly.

org.apache.tools.ant.util.WeakishReference.HardReference

since 1.7. Hopefully nobody is using this.

Returns:

reference to the Object.
org.apache.tools.ant.util.WeakishReference.createReference
(Object
the object that the reference will refer to.
object
)

Deprecated as a consequence of WeakishReference being deprecated. See corresponding docs for further information.

org.apache.tools.ant.util.optional.NoExitSecurityManager

Deprecated as a consequence of SecurityManager being deprecated.

org.apache.tools.ant.util.optional.WeakishReference12

since 1.7. Just use java.lang.ref.WeakReference directly. Note that in ant1.7 is parent was changed to extend HardReference. This is because the latter has access to the (package scoped) WeakishReference(Object) constructor, and both that and this are thin facades on the underlying no-longer-abstract base class.

Returns:

This entry's group id.
org.apache.tools.tar.TarEntry.getGroupId
()

use #getLongGroupId instead as group ids can be bigger than Integer#MAX_VALUE

Returns:

This entry's user id.
org.apache.tools.tar.TarEntry.getUserId
()

use #getLongUserId instead as user ids can be bigger than Integer#MAX_VALUE

org.apache.tools.zip.ZipEntry.setComprSize(final long
the size to use
size
)

since 1.7. Use setCompressedSize(long) directly.

Returns:

the unsigned int as a long.
org.apache.tools.zip.ZipOutputStream.adjustToLong
(int
the value to treat as unsigned int.
i
)

use ZipUtil#adjustToLong

Returns:

the date as a ZipLong
org.apache.tools.zip.ZipOutputStream.toDosTime
(Date
the Date to convert
time
)

use ZipUtil#toDosTime

Returns:

the date as a byte array
org.apache.tools.zip.ZipOutputStream.toDosTime
(long
number of milliseconds since the epoch
t
)

use ZipUtil#toDosTime