- Documentation (2.5.2)
- Release Notes
- Tutorials
- Reference
- Introduction
- System Properties
- Settings Files
- Ivy Files
- Ant Tasks
- artifactproperty
- artifactreport
- buildlist
- buildnumber
- buildobr
- cachefileset
- cachepath
- checkdepsupdate
- cleancache
- configure
- convertmanifest
- convertpom
- deliver
- dependencytree
- findrevision
- fixdeps
- info
- install
- listmodules
- makepom
- post resolve tasks
- publish
- report
- repreport
- resolve
- resources
- retrieve
- settings
- var
- Using standalone
- OSGi
- Developer doc
findrevision
[since 1.4]
Finds the latest revision of a module matching a given version constraint.
A version constraint is what is used when declaring a dependency on a module. If the module is not found, the property is not set.
Attributes
Attribute | Description | Required |
---|---|---|
organisation |
the organisation of the module to find |
Yes |
module |
the name of the module to find |
Yes |
branch |
the branch of the module to find |
No, defaults to the default branch for the given module |
revision |
the revision constraint to apply |
Yes |
property |
the property to set with the found revision |
No, defaults to |
settingsRef |
a reference to Ivy settings that must be used by this task (since 2.0) |
No, defaults to |
Examples
<ivy:findrevision organisation="apache" module="ivy" revision="latest.integration"/>
finds the latest version of Ivy available in the repository and sets the property ivy.revision
according to what was found.
<ivy:findrevision organisation="apache" module="ivy" revision="1.0+"/>
same as above but only with 1.0 sub versions.