next up previous contents index
Next: Remote Tasks Up: Overview of Ant Tasks Previous: Pre-process Tasks   Contents   Index

Property Tasks

Task Name Description
Available Sets a property if a specified file, directory, class in the classpath, or JVM system resource is available at runtime.
Basename Sets a property to the last element of a specified path.
BuildNumber Task that can be used to track build numbers.
Condition Sets a property if a certain condition holds true - this is a generalization of Available and Uptodate.
Dirname Sets a property to the value of the specified file up to, but not including, the last path element.
Echoproperties Lists the current properties.
LoadFile Loads a file into a property.
LoadProperties Load a file's contents as Ant properties. This task is equivalent to using <property file="..."/> except that it supports nested <filterchain> elements, and it cannot be specified outside a target.
PathConvert Converts a nested path, path reference, filelist reference, or fileset reference to the form usable on a specified platform and/or to a list of items separated by the specified separator and stores the result in the specified property.
Property Sets a property (by name and value), or set of properties (from a file or resource) in the project.
PropertyFile Creates or modifies property files. Useful when wanting to make unattended modifications to configuration files for application servers and applications. Typically used for things such as automatically generating a build number and saving it to a build properties file, or doing date manipulation.
Uptodate Sets a property if a given target file is newer than a set of source files.
XmlProperty Loads property values from a valid XML file.


next up previous contents index
Next: Remote Tasks Up: Overview of Ant Tasks Previous: Pre-process Tasks   Contents   Index
Andrew Marlow 2003-07-08