org.apache.tools.ant.taskdefs |
|
Java Source File Name | Type | Comment |
AbstractCvsTask.java | Class | original Cvs.java 1.20
NOTE: This implementation has been moved here from Cvs.java with
the addition of some accessors for extensibility. |
AbstractCvsTaskTest.java | Class | |
AbstractJarSignerTask.java | Class | |
Ant.java | Class | Build a sub-project. |
Antlib.java | Class | Antlib task. |
AntlibDefinition.java | Class | Base class for tasks that that can be used in antlibs. |
AntlibTest.java | Class | |
AntLikeTasksAtTopLevelTest.java | Class | |
AntStructure.java | Class | Creates a partial DTD for Ant from the currently known tasks. |
AntStructureTest.java | Class | |
AntTest.java | Class | |
Apt.java | Class | Apt Task for running the Annotation processing tool for JDK 1.5. |
AptTest.java | Class | |
Available.java | Class | Will set the given property if the requested resource is available at
runtime. |
AvailableTest.java | Class | JUnit test for the Available task/condition. |
Basename.java | Class | Sets a property to the base name of a specified file, optionally minus a
suffix.
This task can accept the following attributes:
The file and property attributes are required. |
BasenameTest.java | Class | |
BuildNumber.java | Class | Read, increment, and write a build number in a file
It will first
attempt to read a build number from a file, then set the property
"build.number" to the value that was read in (or 0 if no such value). |
BUnzip2.java | Class | Expands a file that has been compressed with the BZIP2
algorithm. |
BUnzip2Test.java | Class | |
BZip2.java | Class | Compresses a file with the BZIP2 algorithm. |
BZip2Test.java | Class | |
CallTarget.java | Class | Call another target in the same project. |
CallTargetTest.java | Class | |
Checksum.java | Class | Used to create or verify file checksums. |
ChecksumTest.java | Class | |
Chmod.java | Class | Chmod equivalent for unix-like environments. |
Classloader.java | Class | EXPERIMENTAL
Create or modifies ClassLoader. |
Concat.java | Class | This class contains the 'concat' task, used to concatenate a series
of files into a single stream. |
ConcatTest.java | Class | A test class for the 'concat' task, used to concatenate a series of
files into a single stream. |
ConditionTask.java | Class | Task to set a property conditionally using <uptodate>, <available>,
and many other supported conditions. |
ConditionTest.java | Class | |
Copy.java | Class | Copies a file or directory to a new file
or directory. |
Copydir.java | Class | Copies a directory. |
CopydirTest.java | Class | |
Copyfile.java | Class | Copies a file. |
CopyfileTest.java | Class | |
CopyPath.java | Class | |
CopyTest.java | Class | Tests FileSet using the Copy task. |
Cvs.java | Class | Performs operations on a CVS repository. |
CVSPass.java | Class | Adds an new entry to a CVS password file. |
CVSPassTest.java | Class | Tests CVSLogin task. |
DefaultExcludes.java | Class | Alters the default excludes for the entire build.. |
DefaultExcludesTest.java | Class | |
DefBase.java | Class | Base class for Definitions handling uri and class loading. |
Definer.java | Class | Base class for Taskdef and Typedef - handles all
the attributes for Typedef. |
Delete.java | Class | Deletes a file or directory, or set of files defined by a fileset.
The original delete task would delete a file, or a set of files
using the include/exclude syntax. |
DeleteTest.java | Class | |
Deltree.java | Class | |
DeltreeTest.java | Class | |
DemuxOutputTask.java | Class | A simple task that prints to System.out and System.err and then catches
the output which it then checks. |
DependSet.java | Class | Examines and removes out of date target files. |
DiagnosticsTask.java | Class | This is a task that hands off work to the Diagnostics module. |
Dirname.java | Class | Determines the directory name of the specified file.
This task can accept the following attributes:
Both file and property are required.
When this task executes, it will set the specified property to the
value of the specified file up to, but not including, the last path
element. |
DirnameTest.java | Class | |
DynamicTask.java | Class | |
DynamicTest.java | Class | |
Ear.java | Class | Creates a EAR archive. |
Echo.java | Class | Writes a message to the Ant logging facilities. |
EchoTest.java | Class | |
EchoXML.java | Class | Echo XML. |
EchoXMLTest.java | Class | |
Exec.java | Class | Executes a given command if the os platform is appropriate.
As of Ant 1.2, this class is no longer the
implementation of Ant's <exec> task - it is considered to be
dead code by the Ant developers and is unmaintained. |
ExecTask.java | Class | Executes a given command if the os platform is appropriate. |
ExecTaskTest.java | Class | Unit test for the <exec> task. |
Execute.java | Class | Runs an external program. |
ExecuteJava.java | Class | Execute a Java class. |
ExecuteJavaTest.java | Class | Simple testcase for the ExecuteJava class - mostly stolen from
ExecuteWatchdogTest. |
ExecuteOn.java | Class | Executes a given command, supplying a set of files as arguments. |
ExecuteStreamHandler.java | Interface | Used by Execute to handle input and output stream of
subprocesses. |
ExecuteWatchdog.java | Class | Destroys a process running for too long. |
ExecuteWatchdogTest.java | Class | Simple testcase for the ExecuteWatchdog class. |
Exit.java | Class | Exits the active build, giving an additional message
if available.
The if and unless attributes make the
failure conditional -both probe for the named property being defined.
The if tests for the property being defined, the
unless for a property being undefined.
If both attributes are set, then the test fails only if both tests
are true. |
Expand.java | Class | Unzip a file. |
FailTest.java | Class | |
Filter.java | Class | Sets a token filter that is used by the file copy tasks
to do token substitution. |
FilterTest.java | Class | |
FixCRLF.java | Class | Converts text source files to local OS formatting conventions, as
well as repair text files damaged by misconfigured or misguided editors or
file transfer programs.
This task can take the following arguments:
- srcdir
- destdir
- include
- exclude
- cr
- eol
- tab
- eof
- encoding
- targetencoding
Of these arguments, only sourcedir is required.
When this task executes, it will scan the srcdir based on the include
and exclude properties.
This version generalises the handling of EOL characters, and allows
for CR-only line endings (the standard on Mac systems prior to OS X).
Tab handling has also been generalised to accommodate any tabwidth
from 2 to 80, inclusive. |
FixCrLfTest.java | Class | |
GenerateKey.java | Class | Generates a key in a keystore. |
Get.java | Class | Gets a particular file from a URL source.
Options include verbose reporting, timestamp based fetches and controlling
actions on failures. |
GetTest.java | Class | |
GUnzip.java | Class | Expands a file that has been compressed with the GZIP
algorithm. |
GUnzipTest.java | Class | |
GZip.java | Class | Compresses a file with the GZIP algorithm. |
GzipTest.java | Class | |
ImportTask.java | Class | Task to import another build file into the current project.
It must be 'top level'. |
ImportTest.java | Class | |
InitializeClassTest.java | Class | Test to see if static initializers are invoked the same way
when is invoked in forked and unforked modes. |
Input.java | Class | Reads an input line from the console. |
InputTest.java | Class | |
Jar.java | Class | Creates a JAR archive. |
JarTest.java | Class | |
Java.java | Class | Launcher for Java applications. |
Javac.java | Class | Compiles Java source files. |
JavacTest.java | Class | Testcase for . |
Javadoc.java | Class | Generates Javadoc documentation for a collection
of source code. |
JavadocTest.java | Class | |
JavaTest.java | Class | |
JDBCTask.java | Class | Handles JDBC configuration needed by SQL type tasks. |
Jikes.java | Class | Encapsulates a Jikes compiler, by directly executing an external
process.
As of Ant 1.2, this class is considered to be dead code
by the Ant developers and is unmaintained. |
JikesOutputParser.java | Class | Parses output from jikes and
passes errors and warnings
into the right logging channels of Project.
As of Ant 1.2, this class is considered to be dead code
by the Ant developers and is unmaintained. |
KeySubst.java | Class | Keyword substitution. |
Length.java | Class | Gets lengths: of files/resources, byte size; of strings, length (optionally trimmed). |
LengthTest.java | Class | |
LoadFile.java | Class | |
LoadFileTest.java | Class | |
LoadProperties.java | Class | Load a file's contents as Ant properties. |
LoadPropertiesTest.java | Class | |
LoadResource.java | Class | |
LogOutputStream.java | Class | Logs each line written to this stream to the log system of ant. |
LogStreamHandler.java | Class | Logs standard output and error of a subprocess to the log system of ant. |
MacroDef.java | Class | Describe class MacroDef here. |
MacroDefTest.java | Class | |
MacroInstance.java | Class | The class to be placed in the ant type definition. |
MakeUrl.java | Class | This task takes file and turns them into a URL, which it then assigns
to a property. |
MakeUrlTest.java | Class | |
Manifest.java | Class | |
ManifestClassPath.java | Class | Converts a Path into a property suitable as a Manifest classpath. |
ManifestClassPathTest.java | Class | Tests <bm:manifestclasspath>. |
ManifestException.java | Class | |
ManifestTask.java | Class | Creates a manifest file for inclusion in a JAR, Ant task wrapper
around
Manifest Manifest . |
ManifestTest.java | Class | Testcase for the Manifest class used in the jar task. |
MatchingTask.java | Class | This is an abstract task that should be used by all those tasks that
require to include or exclude files based on pattern matching. |
Mkdir.java | Class | Creates a given directory. |
MkdirTest.java | Class | |
Move.java | Class | Moves a file or directory to a new file or directory.
By default, the
destination file is overwritten if it already exists.
When overwrite is
turned off, then files are only moved if the source file is
newer than the destination file, or when the destination file does
not exist.
Source files and directories are only deleted when the file or
directory has been copied to the destination successfully. |
MoveTest.java | Class | Tests the Move task. |
MultiMapTest.java | Class | |
Nice.java | Class | A task to provide "nice-ness" to the current thread, and/or to
query the current value. |
NiceTest.java | Class | |
Pack.java | Class | Abstract Base class for pack tasks. |
Parallel.java | Class | Executes the contained tasks in separate threads, continuing
once all are completed.
New behavior allows for the ant script to specify a maximum number of
threads that will be executed in parallel. |
ParallelTest.java | Class | |
Patch.java | Class | Patches a file by applying a 'diff' file to it; requires "patch" to be
on the execution path. |
PathConvert.java | Class | Converts path and classpath information to a specific target OS
format. |
PathConvertTest.java | Class | Unit test for the <pathconvert> task. |
PreSetDef.java | Class | The preset definition task generates a new definition
based on a current definition with some attributes or
elements preset. |
PreSetDefTest.java | Class | |
ProcessDestroyer.java | Class | Destroys all registered Process es when the VM exits. |
ProcessDestroyerTest.java | Class | |
Property.java | Class | Sets a property by name, or set of properties (from file or
resource) in the project. |
PropertyTest.java | Class | |
ProtectedJarMethodsTest.java | Class | |
PumpStreamHandler.java | Class | Copies standard output and error of subprocesses to standard output and
error of the parent process. |
Recorder.java | Class | Adds a listener to the current build process that records the
output to a file.
Several recorders can exist at the same time. |
RecorderEntry.java | Class | This is a class that represents a recorder. |
RecorderTest.java | Class | |
Redirector.java | Class | The Redirector class manages the setup and connection of
input and output redirection for an Ant project component. |
Rename.java | Class | Renames a file. |
RenameTest.java | Class | |
Replace.java | Class | Replaces all occurrences of one or more string tokens with given
values in the indicated files. |
ReplaceTest.java | Class | |
ResourceCount.java | Class | Count resources from a ResourceCollection, storing to a property or
writing to the log. |
Rmic.java | Class | |
RmicAdvancedTest.java | Class | |
RmicTest.java | Class | Testcase for . |
SendEmail.java | Class | A task to send SMTP email. |
Sequential.java | Class | Sequential is a container task - it can contain other Ant tasks. |
SignJar.java | Class | Signs JAR or ZIP files with the javasign command line tool. |
SignJarTest.java | Class | |
Sleep.java | Class | Sleep, or pause, for a period of time.
A task for sleeping a short period of time, useful when a
build or deployment process requires an interval between tasks.
A negative value can be supplied to any of attributes provided the total sleep time
is positive, pending fundamental changes in physics and JVM
execution times
Note that sleep times are always hints to be interpreted by the OS how it feels
small times may either be ignored or rounded up to a minimum timeslice. |
SleepTest.java | Class | |
SQLExec.java | Class | Executes a series of SQL statements on a database using JDBC.
Statements can
either be read in from a text file using the src attribute or from
between the enclosing SQL tags.
Multiple statements can be provided, separated by semicolons (or the
defined delimiter). |
SQLExecTest.java | Class | Simple testcase to test for driver caching.
To test for your own database, you may need to tweak getProperties(int)
and add a couple of keys. |
StreamPumper.java | Class | Copies all data from an input stream to an output stream. |
StyleTest.java | Class | TestCases for
XSLTProcess task. |
SubAnt.java | Class | Calls a given target for all defined sub-builds. |
SubAntTest.java | Class | |
Sync.java | Class | Synchronize a local target directory from the files defined
in one or more filesets.
Uses a <copy> task internally, but forbidding the use of
mappers and filter chains. |
SyncTest.java | Class | |
Tar.java | Class | Creates a tar archive. |
TarTest.java | Class | |
Taskdef.java | Class | Adds a task definition to the current project, such that this new task can be
used in the current project. |
TaskdefsTest.java | Class | |
TaskdefTest.java | Class | |
TaskOutputStream.java | Class | Redirects text written to a stream thru the standard
ant logging mechanism. |
TempFile.java | Class | This task sets a property to the name of a temporary file. |
TestProcess.java | Class | Interactive Testcase for Processdestroyer. |
TimeProcess.java | Class | Helper class for ExecuteWatchdogTest and ExecuteJavaTest. |
Touch.java | Class | Touch a file and/or fileset(s) and/or filelist(s);
corresponds to the Unix touch command. |
TouchTest.java | Class | |
Transform.java | Class | Has been merged into ExecuteOn, empty class for backwards compatibility. |
Tstamp.java | Class | Sets properties to the current time, or offsets from the current time. |
TStampTest.java | Class | |
TypeAdapterTest.java | Class | |
Typedef.java | Class | Adds a data type definition to the current project.
Two attributes are
needed, the name that identifies this data type uniquely, and the full
name of the class (including the packages) that implements this
type.
You can also define a group of data types at once using the file or
resource attributes. |
TypedefTest.java | Class | |
Unpack.java | Class | Abstract Base class for unpack tasks. |
Untar.java | Class | Untar a file.
For JDK 1.1 "last modified time" field is set to current time instead of being
carried from the archive file.
PatternSets are used to select files to extract
from the archive. |
UntarTest.java | Class | |
UnzipTest.java | Class | |
UpToDate.java | Class | Sets the given property if the specified target has a timestamp
greater than all of the source files. |
UpToDateTest.java | Class | |
VerifyJar.java | Class | JAR verification task.
For every JAR passed in, we fork jarsigner to verify
that it is correctly signed. |
WaitFor.java | Class | Wait for an external event to occur.
Wait for an external process to start or to complete some
task. |
War.java | Class | An extension of <jar> to create a WAR archive. |
WarTest.java | Class | |
WhichResource.java | Class | Find a class or resource on the supplied classpath, or the
system classpath if none is supplied. |
WhichResourceTest.java | Class | |
XmlnsTest.java | Class | |
XmlProperty.java | Class | Loads property values from a valid XML file, generating the
property names from the file's element and attribute names.
Example:
<root-tag myattr="true">
<inner-tag someattr="val">Text</inner-tag>
<a2><a3><a4>false</a4></a3></a2>
<x>x1</x>
<x>x2</x>
</root-tag>
this generates the following properties:
root-tag(myattr)=true
root-tag.inner-tag=Text
root-tag.inner-tag(someattr)=val
root-tag.a2.a3.a4=false
root-tag.x=x1,x2
The collapseAttributes property of this task can be set
to true (the default is false) which will instead result in the
following properties (note the difference in names of properties
corresponding to XML attributes):
root-tag.myattr=true
root-tag.inner-tag=Text
root-tag.inner-tag.someattr=val
root-tag.a2.a3.a4=false
root-tag.x=x1,x2
Optionally, to more closely mirror the abilities of the Property
task, a selected set of attributes can be treated specially. |
XmlPropertyTest.java | Class | |
XSLTLiaison.java | Interface | Proxy interface for XSLT processors. |
XSLTLiaison2.java | Interface | Extended Proxy interface for XSLT processors. |
XSLTLiaison3.java | Interface | Extends Proxy interface for XSLT processors. |
XSLTLogger.java | Interface | |
XSLTLoggerAware.java | Interface | Interface for a class that one can set an XSLTLogger on. |
XSLTProcess.java | Class | Processes a set of XML documents via XSLT. |
Zip.java | Class | Create a Zip file. |
ZipTest.java | Class | |