|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.condition.AntVersion
public class AntVersion
An Ant version condition.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
AntVersion()
|
Method Summary | |
---|---|
boolean |
eval()
Evaluate the condition. |
void |
execute()
Run as a task. |
java.lang.String |
getAtLeast()
Get the atleast attribute. |
java.lang.String |
getExactly()
Get the exactly attribute. |
java.lang.String |
getProperty()
Get the name of the property to hold the ant version. |
void |
setAtLeast(java.lang.String atLeast)
Set the atleast attribute. |
void |
setExactly(java.lang.String exactly)
Set the exactly attribute. |
void |
setProperty(java.lang.String propertyname)
Set the name of the property to hold the ant version. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AntVersion()
Method Detail |
---|
public void execute() throws BuildException
execute
in class Task
BuildException
- if an error occurs.public boolean eval() throws BuildException
eval
in interface Condition
BuildException
- if an error occurs.public java.lang.String getAtLeast()
public void setAtLeast(java.lang.String atLeast)
atLeast
- the version to check against.public java.lang.String getExactly()
public void setExactly(java.lang.String exactly)
exactly
- the version to check against.public java.lang.String getProperty()
public void setProperty(java.lang.String propertyname)
propertyname
- the name of the property.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |