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

add failureproperty parameter to the resolve task

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.1
    • 1.4-RC1
    • Ant
    • None

    Description

      When haltonfailure is set to false and there is an ivy failure, the resolve task should set a property with the name given as a parameter failureproperty. (similar to the junit task behavior).

      This would allow to trigger some specific ant scripts when some dependency are missing.

      For a concrete example of applicability, I have a big project with a lot of submodules. I want to speed up the build by retrieving all the external dependencies once (when the build is launched at the root level), and then switch in an offline mode to only use the cache and the locally build module.
      To do that, I have an ivy file at the root level containing each submodule as dependency. When performing an 'online" resolve, the ivy files of the submodules are taken from our continuous build repository, and the external ivy/jar dependant of this sub-module are also placed in the cache.

      That works correctly, except if the continuous repository is empty (or down). In that case, I should not switch to an offline mode.

      Attachments

        Activity

          People

            xavier Xavier Hanin
            gscokart Scokart Gilles
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: