Uploaded image for project: 'IvyDE'
  1. IvyDE
  2. IVYDE-105

Retrieve after resolve feature does not clean target directory first

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0.alpha1
    • Fix Version/s: 2.0.0.beta1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Eclipse 3.4

      Description

      I use the 'Retrieve after resolve' feature in order to populate the directory web/WEB-INF/lib
      in my project using pattern 'web/WEB-INF/lib/[artifact]-[revision].[ext]'.

      This directory is used by the servlet engine in order to load librairies, but the directory can
      contain multiple artifact of the same module (mylib-1.0.jar and mylib-1.1.jar) or old dependencies
      if you update your ivy.xml and then resolve again.

      I know that removing files based on a pattern is dangerous and not trivial.
      Removing files below the longest path without '[' may be a good alternative
      (with an optional check box "Clean directory").

      Another solution is to keep the previous retrieved artifacts and removing them if still
      present just before the new retrieve.

        Attachments

          Activity

            People

            • Assignee:
              hibou Nicolas Lalevée
              Reporter:
              yabon Sébastien Launay
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: