Class AntVersion
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.condition.AntVersion
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleaneval()Evaluate the condition.voidexecute()Run as a task.Get the atleast attribute.Get the exactly attribute.Get the name of the property to hold the ant version.voidsetAtLeast(String atLeast) Set the atleast attribute.voidsetExactly(String exactly) Set the exactly attribute.voidsetProperty(String propertyname) Set the name of the property to hold the ant version.Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
AntVersionpublic AntVersion()
 
- 
- 
Method Details- 
executeRun as a task.- Overrides:
- executein class- Task
- Throws:
- BuildException- if an error occurs.
 
- 
evalEvaluate the condition.- Specified by:
- evalin interface- Condition
- Returns:
- true if the condition is true.
- Throws:
- BuildException- if an error occurs.
 
- 
getAtLeast
- 
setAtLeastSet the atleast attribute. This is of the form major.minor.point. For example 1.7.0.- Parameters:
- atLeast- the version to check against.
 
- 
getExactly
- 
setExactlySet the exactly attribute. This is of the form major.minor.point. For example 1.7.0.- Parameters:
- exactly- the version to check against.
 
- 
getPropertyGet the name of the property to hold the ant version.- Returns:
- the name of the property.
 
- 
setPropertySet the name of the property to hold the ant version.- Parameters:
- propertyname- the name of the property.
 
 
-