Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-676

Ivy doesn't respect the order of the ivy patterns as defined in the settings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-beta-1
    • 2.0.0-beta-2
    • Core
    • None

    Description

      I have a resolver which has multiple Ivy patterns:

              <filesystem name="tcomp-repository" checkmodified="true" changingPattern=".*"  local="true">
                  <!-- pattern for the dependencies file -->
                  <ivy pattern="${tcomp.repository}/lcm/[module]/[module]-[revision]/lib/[module]-[revision].ivy" />
      
                  <!-- pattern for the 'old-style' dependencies files -->
                  <ivy pattern="${tcomp.repository}/lcm/[module]/[module]-[revision]/lib/[module]-[revision].dependencies" />
      
                  <!-- the artifact locations -->                
                  <artifact pattern="${tcomp.repository}/lcm/[module]/[module]-[revision]/[type]/[artifact]-[revision].[ext]" />
                  <artifact pattern="${tcomp.repository}/lcm/[module]/[module]-[revision]/[type]/[artifact].[ext]" />
                  <artifact pattern="${tcomp.repository}/lcm/[module]/[module]-[revision]/lib/[artifact]-[revision].[ext]" />
                  <artifact pattern="${tcomp.repository}/lcm/[module]/[module]-[revision]/lib/[artifact].[ext]" />
      
                  <!-- source artifacts -->
                  <artifact pattern="${tcomp.repository}/lcm/[module]/[module]-[revision]/[type]/[artifact]-[revision]-src.[ext]" />
              </filesystem>
      

      When both files exists (for instance moduleX-1.0.ivy and moduleX-1.0.dependencies):
      with Ivy 1.4, the first pattern that matched was chosen. In most cases, this was [module]-[revision].ivy
      with Ivy 2.0.0-beta1, it seems that the last matching pattern is chosen: [module]-[revision].dependencies

      This can cause problems if both files defines the dependencies differently.

      Attachments

        Activity

          People

            maartenc Maarten Coene
            maartenc Maarten Coene
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: