- Documentation (2.3.0-rc2)
- Release Notes
- Tutorials
- Reference
- Introduction
- Settings Files
- Ivy Files
- Ant Tasks
- 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 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 ivy.revision |
settingsRef | A reference to the ivy settings that must be used by this task (since 2.0) | No, 'ivy.instance' is taken by default. |
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.