Ivy
  1. Ivy
  2. IVY-189

Always update artifacts when revision matches a regex pattern

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3-RC3
    • Fix Version/s: 1.4-RC1
    • Component/s: Core
    • Labels:
      None

      Description

      As discussed in http://www.jayasoft.org/node/524 and a number of other discussions, a feature is needed that will enable users to tell Ivy to always update artifacts in the cache if their corresponding files in the local repository change.

      Xavier proposes to let Ivy use information in the revision number to detect whether or not an artifact can be updated without a change in its revision. This prevents having to explicitly set attribute 'changing' to 'true' in the Ivy file.

      By using a regular expression pattern which can be configured in the Ivy configuration, users can adapt this feature to match their specific setup.

        Activity

        Hide
        Johan Stuyts added a comment -

        This patch adds attribute 'changingPattern' to the configuration of resolvers. When the revision of a module matches this pattern, the resolver will assume that the artifacts of the module are 'changing'.

        Show
        Johan Stuyts added a comment - This patch adds attribute 'changingPattern' to the configuration of resolvers. When the revision of a module matches this pattern, the resolver will assume that the artifacts of the module are 'changing'.
        Hide
        Xavier Hanin added a comment -

        I've integrated your patch and slightly modified it, to be able to configure the matcher to use for the matching pattern (exactOrRegexp by default, can be glob with oro in classpath, which let use simple pattern like this: *-SNAPSHOT).

        Thanks a lot for your contribution

        Show
        Xavier Hanin added a comment - I've integrated your patch and slightly modified it, to be able to configure the matcher to use for the matching pattern (exactOrRegexp by default, can be glob with oro in classpath, which let use simple pattern like this: *-SNAPSHOT). Thanks a lot for your contribution
        Hide
        Xavier Hanin added a comment -

        I've updated the reference documentation here:
        http://www.jayasoft.org/ivy/doc/configuration/resolvers#common

        Show
        Xavier Hanin added a comment - I've updated the reference documentation here: http://www.jayasoft.org/ivy/doc/configuration/resolvers#common

          People

          • Assignee:
            Xavier Hanin
            Reporter:
            Johan Stuyts
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Development