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

retrieve fails when resolve is done with useOrigin set to true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-RC1
    • 1.4.1
    • None
    • None

    Description

      If I do an ivy:retrieve after an ivy:resolve with useOrigin="true", I receive a FileNotFoundException.

      For instance:
      java.lang.RuntimeException: problem during retrieve of [ LCMB | ear_sparadm ]: java.io.FileNotFoundException: C:\working\sparadm\ear_sparadm\build\ivy-cache\OTHER\commons-collections\jars\commons-collections-3.0.0.jar (The system cannot find the path specified)
      at fr.jayasoft.ivy.Ivy.retrieve(Ivy.java:1968)
      at fr.jayasoft.ivy.ant.IvyRetrieve.execute(IvyRetrieve.java:36)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      at org.apache.tools.ant.Target.execute(Target.java:341)
      at org.apache.tools.ant.Target.performTasks(Target.java:369)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.apache.tools.ant.Main.runBuild(Main.java:668)
      at org.apache.tools.ant.Main.startAnt(Main.java:187)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      Caused by: java.io.FileNotFoundException: C:\working\sparadm\ear_sparadm\build\ivy-cache\OTHER\commons-collections\jars\commons-collections-3.0.0.jar (The system cannot find the path specified)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:106)
      at fr.jayasoft.ivy.util.FileUtil.copy(FileUtil.java:47)
      at fr.jayasoft.ivy.util.FileUtil.copy(FileUtil.java:32)
      at fr.jayasoft.ivy.Ivy.retrieve(Ivy.java:1931)
      ... 13 more

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: