Ivy
  1. Ivy
  2. IVY-1044

retrieve doesn't retrive files if the current one is more recent

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.2.0-RC1
    • Component/s: Ant, Core
    • Labels:
      None
    • Environment:

      Win XP, J2SE 1.6.0_11-b03

      Description

      The "retrieve" task will not retrieve files (artifacts) whose file modification date is greater than of the file in the repository (in the "resolver"), not even if sync="true". This way the target directory goes out of sync if (a) the module is downgraded in the repository or (b) the developer has overwritten the artifact manually when experiencing with something. Thus the only way to keep the target directory in sync is deleting it before retrieving, but of course that means suboptimal performance, and makes sync="true" useless anyway. Simply, a file should be retrieved if the date (or size!) is different than in the repository.

        Issue Links

          Activity

          Daniel Dekany created issue -
          Maarten Coene made changes -
          Field Original Value New Value
          Assignee Maarten Coene [ maartenc ]
          Fix Version/s 2.2.0-RC1 [ 12315013 ]
          Component/s Core [ 12311511 ]
          Maarten Coene made changes -
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          Hide
          Maarten Coene added a comment -

          I've added an 'overwriteMode' attribute to the ivy:retrieve task to configure when the destination files should be overwritten...

          Show
          Maarten Coene added a comment - I've added an 'overwriteMode' attribute to the ivy:retrieve task to configure when the destination files should be overwritten...
          Maarten Coene made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Antoine Levy-Lambert added a comment -

          Thanks Maarten. I will try this. Antoine

          Show
          Antoine Levy-Lambert added a comment - Thanks Maarten. I will try this. Antoine
          Brett Langston made changes -
          Link This issue relates to IVY-1316 [ IVY-1316 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          427d 7h 48m 1 Maarten Coene 10/May/10 21:10

            People

            • Assignee:
              Maarten Coene
              Reporter:
              Daniel Dekany
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development