Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.condition

public Class AntVersion

extends Task
implements Condition
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.taskdefs.condition.Condition
Imports
org.apache.tools.ant.BuildException, .MagicNames, .Project, .Task, org.apache.tools.ant.util.DeweyDecimal

An Ant version condition.
Since
Ant 1.7

Field Summary

Modifier and TypeField and Description
private String
private String
private String
Inherited from org.apache.tools.ant.Task:
targettaskNametaskTypewrapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the condition is true.
eval
()

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Evaluate the condition.
public void
execute()

Overrides org.apache.tools.ant.Task.execute.

Run as a task.
public String

Returns:

the atleast attribute.
getAtLeast
()

Get the atleast attribute.

public String

Returns:

the exactly attribute.
getExactly
()

Get the exactly attribute.

public String

Returns:

the name of the property.
getProperty
()

Get the name of the property to hold the ant version.

private DeweyDecimal
public void
setAtLeast(String
the version to check against.
atLeast
)

Set the atleast attribute.

public void
setExactly(String
the version to check against.
exactly
)

Set the exactly attribute.

public void
setProperty(String
the name of the property.
propertyname
)

Set the name of the property to hold the ant version.

private void
Inherited from org.apache.tools.ant.Task:
bindToOwnergetOwningTargetgetRuntimeConfigurableWrappergetTaskNamegetTaskTypegetWrapperhandleErrorFlushhandleErrorOutputhandleFlushhandleInputhandleOutputinitisInvalidloglogloglogmaybeConfigureperformreconfiguresetOwningTargetsetRuntimeConfigurableWrappersetTaskNamesetTaskType

Field Detail

atLeastback to summary
private String atLeast
exactlyback to summary
private String exactly
propertynameback to summary
private String propertyname

Constructor Detail

AntVersionback to summary
public AntVersion()

Method Detail

evalback to summary
public boolean eval() throws BuildException

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Evaluate the condition.

Returns:boolean

true if the condition is true.

Annotations
@Override
Exceptions
BuildException:
if an error occurs.
executeback to summary
public void execute() throws BuildException

Overrides org.apache.tools.ant.Task.execute.

Run as a task.

Annotations
@Override
Exceptions
BuildException:
if an error occurs.
getAtLeastback to summary
public String getAtLeast()

Get the atleast attribute.

Returns:String

the atleast attribute.

getExactlyback to summary
public String getExactly()

Get the exactly attribute.

Returns:String

the exactly attribute.

getPropertyback to summary
public String getProperty()

Get the name of the property to hold the ant version.

Returns:String

the name of the property.

getVersionback to summary
private DeweyDecimal getVersion()
setAtLeastback to summary
public void setAtLeast(String atLeast)

Set the atleast attribute. This is of the form major.minor.point. For example 1.7.0.

Parameters
atLeast:String

the version to check against.

setExactlyback to summary
public void setExactly(String exactly)

Set the exactly attribute. This is of the form major.minor.point. For example 1.7.0.

Parameters
exactly:String

the version to check against.

setPropertyback to summary
public void setProperty(String propertyname)

Set the name of the property to hold the ant version.

Parameters
propertyname:String

the name of the property.

validateback to summary
private void validate() throws BuildException