Ivy
  1. Ivy
  2. IVY-1392

Optional <include> ivysettings directives

    Details

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

      Description

      To allow for VCS-friendly customization of dependency resolution process, a feature that allows for files referenced in an <include> directive of an ivysettings.xml file to be missing without it triggering an error.

      With such a feature, it would be possible to write a global ivysettings.xml file that references a default setup of resolvers/repositories for a project, commit it into a VCS and then never edit it. Instead, an "optional include" directive will point to a file with standardized name, say, ivysettings-local.xml. The file may be missing (which results in the project-default configuration being used), or a developer can create such a file and define an alternative resolution configuration for his own use. The VCS can be configured to ignore the ivysettings-local.xml file, thus absolving the developer of the need to ensure manually at each check-in that the file is not committed into the VCS.

      Currently, a similar feature is implemented for properties files. Unfortunately, it is impossible to, for example, override a project-default resolver with a user-specific one only via use of properties.

      1. optional-include.patch
        0.9 kB
        Yanus Poluektovich

        Activity

        Hide
        Yanus Poluektovich added a comment - - edited

        Attached is a patch that provides a bare-bones implementation of this functionality. The patch is applicable to revision 1415344 of https://svn.apache.org/repos/asf/ant/ivy/core/trunk.

        Show
        Yanus Poluektovich added a comment - - edited Attached is a patch that provides a bare-bones implementation of this functionality. The patch is applicable to revision 1415344 of https://svn.apache.org/repos/asf/ant/ivy/core/trunk .
        Hide
        Maarten Coene added a comment -

        Patch applied.
        Thanks for your contribution!

        Show
        Maarten Coene added a comment - Patch applied. Thanks for your contribution!

          People

          • Assignee:
            Maarten Coene
            Reporter:
            Yanus Poluektovich
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development