Ivy
  1. Ivy
  2. IVY-989

Ability to strip revConstraint attribute from delivered Ivy files

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0-RC1
    • Component/s: Ant, Core
    • Labels:
      None

      Description

      When a dynamic revision is used for dependencies, the delivered Ivy file will contain a revConstraint attribute in order to preserve what the original revision was set to. This is useful for rebuilding a project in order to pick up a more up to date release that satisfies the original dynamic range and for reporting purposes.

      This works well for ranges but in some environments where a custom version matcher is used, the value of the revConstraint may not make sense in a delivered Ivy file that is to be placed into an enterprise repository. For such use-cases it would be good to have a way to disable the revConstraint for being written out into the delivered Ivy file.

        Activity

        Hide
        Jeffrey Sinclair added a comment -

        Thanks Maarten. I'll ensure it is tested in our environment and will let you know if this solves the issue.

        Show
        Jeffrey Sinclair added a comment - Thanks Maarten. I'll ensure it is tested in our environment and will let you know if this solves the issue.
        Hide
        Maarten Coene added a comment -

        The <ivy:deliver> task in SVN trunk has an extra attribute: 'generateRevConstraint". If you set this to 'false', the revConstraint attribute won't be generated.
        Could you give it a try and post your feedback here if this change solves your problem?

        thanks,
        Maarten

        Show
        Maarten Coene added a comment - The <ivy:deliver> task in SVN trunk has an extra attribute: 'generateRevConstraint". If you set this to 'false', the revConstraint attribute won't be generated. Could you give it a try and post your feedback here if this change solves your problem? thanks, Maarten

          People

          • Assignee:
            Maarten Coene
            Reporter:
            Jeffrey Sinclair
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development