Ant - Task

Card Puncher Data Processing

About

A task is a function and belongs to a target

The task operates only on the parameters it is given. Tasks can consume and emit items and properties. By design, they have no other insight into the state of the build. They should not discover files on disk - this makes them opaque and less reusable.

Some tasks will generate build failures if they are used outside of targets as they may cause infinite loops otherwise (<antcall> for example).

Syntax

Tasks have a common structure:

<taskname id="taskID" attribute1="value1" attribute2="value2" ... />

where:

  • taskname is the name of the task,
  • taskID is a unique identifier that you use to refer to this task in scripts or other tasks.
  • attributeN is the attribute name, and valueN is the value for this attribute.

Type

Optional

Ant supports a number of optional tasks. An optional task is a task which typically requires an external library to function.

List

Documentation





Discover More
Card Puncher Data Processing
Ant

is a build tool such as make, gnumake, nmake, jam,... without their limitations. is a Java technology-based build tool developed by the Apache Software Foundation (). supplies...
Os Path Ant Home Windows
Ant - Installation (Windows based)

Installation of Ant JDK installed on your system, version 1.8 or later Download the latest binary Uncompress the binary in a directory called the...
Card Puncher Data Processing
Apache Ant - Buildfile (Build.xml)

Apache Ant's buildfiles are the ant script and are written in XML. Each buildfile contains: one and at least one (default) target with task elements.
Card Puncher Data Processing
Apache Ant - Property

Properties are key-value-pairs where Apache Ant tries to expand to value at runtime. The key name is case-sensitive. Properties: permit to customize a build process provide shortcuts for strings...
Card Puncher Data Processing
Apache Ant - Target

A target is a grouping of tasks designed to do a particular job. Targets can declare other targets that they depend on. In a build, targets are the unit of incremental build. The default target...
Card Puncher Data Processing
Maven - Goal

A goal is the execution part of a plugin. An individual plugin may have multiple goals. Each goal may have a separate configuration. If you are familiar with Ant, a goal is similar to a task. A goal...



Share this page:
Follow us:
Task Runner