-
ClassDescriptionApache Log4j (1) is not developed any more. Last release is 1.2.17 from 26-May-2012 and contains vulnerability issues. Use the standard listener or your own custom listener instead.since 1.7 Just use
AntClassLoader
itself.since 1.9.7 Just useAntClassLoader
itself.UseJavac13
instead.The copydir task is deprecated since Ant 1.2. Use copy instead.The copyfile task is deprecated since Ant 1.2. Use copy instead.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.The deltree task is deprecated since Ant 1.2. Use delete instead.see org.apache.tools.ant.taskdefs.email.JakartaMimeMailersince 1.2. delegate toExecute
instead.since 1.7.0.since 1.2. Merged into the class Javac.since 1.2. Use Jikes' exit value to detect compilation failure.KeySubst is deprecated since Ant 1.1. Use Filter + Copy instead.use org.apache.tools.ant.util.DeweyDecimal instead. Deprecated since ant 1.8JAI is not developed any more. Internal APIs that JAI depends on were scheduled for removal in Java 7 and finally removed in Java 9.since 1.6.x. UseEmailTask
instead.since 1.5.x. Use <move> insteadThe rename task is deprecated since Ant 1.2. Use move instead.since 1.2.x. Use LogOutputStream instead.since 1.7. Just useWeakReference
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.Implementation moved to another location. Use org.apache.tools.ant.util.optional.ScriptRunner instead.Starting Ant 1.10.2, this class is now deprecated in favour of the JavaFiles
APIs introduced in Java 7, for dealing with symbolic linksdeprecated 1.7; will be removed in Ant1.8 Just useWeakReference
directly.since 1.7. Hopefully nobody is using this.
-
FieldDescriptionsince 1.6.x. Use the
getDefaultExcludes
method instead.use MagicNames.ANT_CORE_PACKAGEsince 1.5.x. UseJavaEnvUtils.JAVA_1_0
instead.since 1.5.x. UseJavaEnvUtils.JAVA_1_1
instead.since 1.5.x. UseJavaEnvUtils.JAVA_1_2
instead.since 1.5.x. UseJavaEnvUtils.JAVA_1_3
instead.since 1.5.x. UseJavaEnvUtils.JAVA_1_4
instead.since 1.6.x. You should not be accessing this variable directly.since 1.6.x. You should not be accessing this variable directly. Please use theProjectComponent.getLocation()
method.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.use MagicNames.ANTLIB_PREFIXuse MagicNames.PROJECT_HELPER_CLASSuse MagicNames.REFID_PROJECT_HELPERuse MagicNames.PROJECT_HELPER_SERVICEsince 1.6.x. You should not be accessing this variable directly. Please use theTask.getOwningTarget()
method.since 1.6.x. You should not be accessing this variable directly. Please use theTask.getTaskName()
method.since 1.6.x. You should not be accessing this variable directly. Please use theTask.getTaskType()
method.since 1.6.x. You should not be accessing this variable directly. Please use theTask.getWrapper()
method.Since 1.10.6since 1.5.x. Tar.FAIL is deprecated and is replaced with Tar.TarLongFileMode.FAILsince 1.5.x. Tar.GNU is deprecated and is replaced with Tar.TarLongFileMode.GNUsince 1.5.x. Tar.OMIT is deprecated and is replaced with Tar.TarLongFileMode.OMITsince 1.5.x. Tar.TRUNCATE is deprecated and is replaced with Tar.TarLongFileMode.TRUNCATEsince 1.5.x. Tar.WARN is deprecated and is replaced with Tar.TarLongFileMode.WARNsince 1.7. The user should not be directly referencing variable. Please useDataType.setChecked(boolean)
orDataType.isChecked()
instead.since 1.7. The user should not be directly referencing variable. Please useDataType.getRefid()
instead.DateFormat is not thread safe, and we cannot guarantee that some other code is using the format in parallel. Deprecated since ant 1.8use #JAVA_9 insteaduse #VERSION_9 insteaduse StandardCharsets.ISO_8859_1useGeneralPurposeBit.UFT8_NAMES_FLAG
instead
-
MethodDescriptionsince 1.6.x. Use Class.forName with initialize=true instead.Use
Throwable.getCause()
instead.Obsolete since Ant 1.8.2Obsolete since Ant 1.8.2since 1.6.x. This is not a namespace aware method.since 1.9, useFileUtils.getFileURL(File)
since 1.4.x. Use getGlobalFilterSet().addFilter(token,value)since 1.4.xsince 1.4.xsince 1.4.xsince 1.4.xsince 1.4.xsince 1.4.xsince 1.4.xsince 1.4.xsince 1.4.x Use getGlobalFilterSet().getFilterHash().since 1.5.x. Use org.apache.tools.ant.util.JavaEnvUtils instead.since 1.4.xsince 1.5.x. Use setDefault.since 1.4.xsince 1.7 Use FileUtils.translatePath instead.since 1.6.x. Use IntrospectionHelper for each property.since 1.6.x. Use LoaderUtils.getContextClassLoader()since 1.6.x. Use PropertyHelper.since 1.6.x. Use project.replaceProperties().since 1.6.x. Use PropertyHelper.since Ant 1.8.2, use the three-arg method instead.since Ant 1.8.2, use the three-arg method instead.use the delegate mechanism insteadnamespaces are unnecessary.PropertyHelper chaining is deprecated.namespaces are unnecessary.use the other mechanisms of this class insteadnamespaces are unnecessary.namespaces are unnecessary.use the delegate mechanism insteadnamespaces are unnecessary.PropertyHelper chaining is deprecated.namespaces are unnecessary.Deprecated since Ant 1.6 in favor ofRuntimeConfigurable.getAttributeMap()
.since 1.6.x.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.use setParentFirst with a negated argument insteadsince 1.5.x. Use org.apache.tools.ant.types.Path#addExtdirs instead.since Ant 1.10.7, use assumeJava1_1Plus, if necessary combined with !assumeJava1_2Plussince Ant 1.10.7, use assumeJava1_2Plus, if necessary combined with !assumeJava1_3Plussince Ant 1.10.7, use assumeJava1_3Plus, if necessary combined with !assumeJava1_4Plussince Ant 1.10.7, use assumeJava1_4Plus, if necessary combined with !assumeJava1_5Plussince Ant 1.10.7, use assumeJava1_5Plus, if necessary combined with !assumeJava1_6Plussince Ant 1.10.7, use assumeJava1_6Plus, if necessary combined with !assumeJava1_7Plussince Ant 1.10.7, use assumeJava1_7Plus, if necessary combined with !assumeJava1_8Plussince Ant 1.10.7, use assumeJava1_8Plus, if necessary combined with !assumeJava9Plususe #assumeJava9 insteadsince Ant 1.10.7, use assumeJava9Plus, in the future if necessary combined with !assumeJava10Plususe #setOverwrite insteadsince 1.5.x. setPreserveLastModified(String) has been deprecated and replaced with setPreserveLastModified(boolean) to consistently let the Introspection mechanism work.since 1.6.x. stop using this attributesince 1.5.x. Use setDestFile(destfile) instead.use #getEnvironmentVariables insteadsince 1.4.x. manage output at the task level.since 1.4.x. UsesetEol
instead.only gets the first configured resourcesince 1.5.x. Use setDestFile(File) instead.since 1.5.x. Use theJavadoc.setExtdirs(Path)
version.since 1.6.x.since ant 1.6use the two arg version insteadthis method isn't used anymorethis method isn't used anymoresince 1.6.x.since 1.6.x.use Collections.enumeration(Arrays.asList(array))use Stream.concat(Collections.list(one).stream(), Collections.list(two).stream()) .collect(Collectors.collectingAndThen(Collectors.toList(), Collections::enumeration))since Ant 1.6since 1.5.x. setAction(String) is deprecated and is replaced with setAction(FTP.Action) to make Ant's Introspection mechanism do the work and also to encapsulate operations on the type in its own class.since 1.5.x. setAction(String) is deprecated and is replaced with setAction(FTP.Action) to make Ant's Introspection mechanism do the work and also to encapsulate operations on the type in its own class.since 1.6.x. Use setByLine(boolean).since 1.7. Use executeScript(attribute, elements, instance) instead.since 1.5.x. Use org.apache.tools.ant.taskdefs.optional.net.SetProxysince 1.5.x. Use org.apache.tools.ant.taskdefs.optional.net.SetProxysince 1.5.x. Use org.apache.tools.ant.taskdefs.optional.net.SetProxysince 1.5.x. Use org.apache.tools.ant.taskdefs.optional.net.SetProxysince 1.5.x. Use org.apache.tools.ant.taskdefs.optional.net.SetProxysince 1.5.x. Use org.apache.tools.ant.util.JAXPUtils#getSystemId instead.useFiles.delete(Path)
insteaduseFiles.delete(Path)
insteadsince 1.5.x. Use the method taking a TargetOs argument instead.since 1.5.x. This was never a supported feature and has been deprecated without replacement.since 1.5.x. UseEmailTask.setMailport(int)
instead.since 1.6.x. Usethe two arg version
instead.since 1.5.x. use the two-arg version instead.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.since 1.5.x. For consistency with other tasks, please use setDestFile().since 1.6.x.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.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.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.since 1.5.x. Use setDestFile(File) insteadsince Ant 1.7since 1.5.x. Use setDestFile(File) instead.since 1.5.x. Use setDestFile(File) instead.since 1.7.since 1.7.since 1.7.since 1.7.since 1.7. Please don't use this, it effectively creates the entire command.use getCheckedRef(Class)use getCheckedRef(Class)since Ant 1.7.1 because a mapper might ref a FileNameMapper implementation directly.use Stream.concat(Collections.list(e1).stream(), Collections.list(e2).stream()) .collect(Collectors.collectingAndThen(Collectors.toList(), Collections::enumeration))instantiate a list and use forEachRemaining(list::add)use Collections.enumeration()use Collections.list(e).iterator()since 1.6.x.since 1.6.x.use stream().collect(Collectors.joining(","))since 1.6.x.since ant 1.7.1 use createTempFile(Project, String, String, File, boolean, boolean) instead.since ant 1.7.1 use createTempFile(Project, String, String, File, boolean, boolean) instead.since Ant 1.10.8 use createTempFile(Project, String, String, File, boolean, boolean) instead.since 1.7. Just useFile.getParentFile()
directly.useFiles.isSymbolicLink(Path)
insteadsince 1.7. Use getFileUtils instead, FileUtils do not have state.use #getParsedJavaVersion insteaduse #getLongGroupId instead as group ids can be bigger thanInteger.MAX_VALUE
use #getLongUserId instead as user ids can be bigger thanInteger.MAX_VALUE
since 1.7. UseZipEntry.setCompressedSize(long)
directly.use ZipUtil#adjustToLonguse ZipUtil#toDosTimeuse ZipUtil#toDosTime
-
ConstructorDescriptionUse
MultipleChoiceInputRequest(String,Collection)
insteadsince 1.6.xsince 1.5.x. Use constructor with a long type instead. (1.4.x compatibility)since 1.7. Please useReference(Project,String)
instead.since 1.7. Please useReference(Project,String)
instead.in favor ofFileResourceIterator(Project)
in favor ofFileResourceIterator(Project, File)
in favor ofFileResourceIterator(Project, File, String[])