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

AttributeDescriptionRequired
organisationthe organisation of the module to find Yes
modulethe the name of the module to find Yes
branchthe branch of the module to find No, defaults to the default branch for the given module
revisionthe revision constraint to apply Yes
propertythe property to set with the found revision No, defaults to ivy.revision
settingsRefA 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.