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 ivy.revision

settingsRef

a reference to Ivy settings that must be used by this task (since 2.0)

No, defaults to ivy.instance.

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.