Package org.apache.tools.ant.util
package org.apache.tools.ant.util
-
ClassDescriptionBASE 64 encoding of a String or an array of bytes.A
ContainerMapper
that chains the results of the first nestedFileNameMapper
s into sourcefiles for the second, the second to the third, and so on, returning the resulting mapped filenames from the last nestedFileNameMapper
.Offers some helper methods on the Path structure in ant.Delegate that helps out any specific ProjectComponent that needs dynamic classloading.Deprecated.Deprecated.AContainerMapper
that unites the results of its constituentFileNameMapper
s into a single set of result filenames.SpecialInputStream
that will concatenate the contents of an array of files.SpecialInputStream
that will concatenate the contents of Resources from a single ResourceCollection.AFileNameMapper
that contains otherFileNameMapper
s.Helper methods to deal with date/time formatting with a specific defined format (ISO8601) or a correct pluralization of elapsed time in minutes and seconds.Utility class to contain version numbers in "Dewey Decimal" syntax.Writes a DOM tree to a given Writer.Whether namespaces should be ignored for elements and attributes.Some utility methods for common tasks when building DOM trees in memory.Interface to be used by SourceFileScanner.Class to read the complete input into a string.This class also encapsulates methods which allow Files to be referred to using abstract path names which are translated to native system file paths at runtime as well as copying files or setting their last modification time.AContainerMapper
that returns the results of its first constituentFileNameMapper
s that matches.Implementation of FileNameMapper that always returns the source file name without any leading directory information.Implementation of FileNameMapper that does simple wildcard pattern replacements.Implementation of FileNameMapper that always returns the source file name.Identity Stack.A set of helper methods related to locating executables or checking conditions of a given Java installation.Collection of helper methods that retrieve a ParserFactory or Parsers and Readers.Class that can be used to wrapSystem.in
without getting anxious about any client closing the stream.Class that can be used to wrapSystem.out
andSystem.err
without getting anxious about any client closing the stream.A Properties collection which preserves comments and whitespace present in the input stream from which it was loaded.Class that delays opening the output file until the first bytes shall be written or the methodopen
has been invoked explicitly.LazyHashtable<K,V> Deprecated.SpecialPipedInputStream
that will not die when the writingThread
is no longer alive.InvokesprocessLine
whenever a full line has been written to this stream.Output stream which buffer and redirect a stream line by line.class to tokenize the input as lines separated by \r (mac style), \r\n (dos/windows style) or \n (unix style)LinkedHashtable<K,V> Subclass of Hashtable that wraps a LinkedHashMap to provide predictable iteration order.ClassLoader utility methodsImplementation of FileNameMapper that always returns the same target file name.Contains helper methods for Ant's built-in implementation of native2ascii.OutputStream that completely discards all data written to it.Manages a set ofOutputStream
s to write to a single underlying stream, which is closed only when the last "funnel" has been closed.Maps directory name matches into a dotted package name.Contains helper methods for dealing withPosixFilePermission
or the traditional Unix mode representation of permissions.The supported types of files, maps to theisFoo
methods inBasicFileAttributes
.Process UtilitiesOutputStream
that writes an Ant property.Code to do proxy setup.Adapts aReader
as anInputStream
.Utility class to handle reflection on java objects.Utility class to handle reflection on java objects.Implementation of FileNameMapper that does regular expression replacements.This class provides utility methods to process Resources.Simple interface for executing a piece of code.A simple utility class to take a piece of code (that implementsRetryable
interface) and executes that with possibility to retry the execution in case of IOException.A class to modify a classloader to support BSF language support.Script managerenum
.Deprecated.Implementation moved to another location.This is a common abstract base case for script runners.This is a helper class used by ScriptRunnerHelper to create a ScriptRunner based on a classloader and on a language.A class to help in creating, setting and getting script runners.Utility class that collects the functionality of the various scanDir methods that have been scattered in several tasks before.Specialized classloader for tasks that need finer grained control over which classes are to be loaded via Ant's classloader and which should not even if they are available.Class to tokenize the input as areas separated by white space, or by a specified list of delim characters.A set of helper methods related to string manipulation.Deprecated.Starting Ant 1.10.2, this class is now deprecated in favour of the JavaFiles
APIs introduced in Java 7, for dealing with symbolic linksA facade that makes logging nicer to use.A simple T-piece to replicate an output stream into two separate streamsInterface for classes that want to be notified by Watchdog.input stream tokenizers implement this interfaceContains one helper method to create a backslash u escapeMaps dotted package name matches to a directory name.UUEncoding of an input stream placed into an OutputStream.VectorSet<E>Subclass of Vector that won't store duplicate entries and shows HashSet's constant time performance characteristics for the contains method.Generalization ofExecuteWatchdog
Deprecated.deprecated 1.7; will be removed in Ant1.8 Just useWeakReference
directly.Deprecated.since 1.7.A worker ant executes a single task in a background thread.XML Parser constants, all kept in one place for ease of reuseUse this class as a nested element if you want to get a literal DOM fragment of something nested into your task/type.