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

/localivy target does not work when building Ivy jar

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0-RC1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Mac OS X Lion 10.7.2, MacPorts, 2011 MacBook Pro with Intel Core i7.

      Description

      The /localivy target does not work when building Ivy jar (ant /localivy jar). It is supposed to result in ivy.home being set to $BUILD/.ivy2 instead of $HOME/.ivy2. However, it fails to do so, at least when building the jar target (and probably others). In MacPorts, this causes problems, as Ivy is built as an unprivileged user different to the real user, so can't access ~/.ivy2/cache, so can't resolve dependencies, and the whole build fails.

      1. ivy-home.patch
        0.5 kB
        Ben Schmidt

        Activity

        Hide
        isfs Ben Schmidt added a comment -

        Investigation shows that the property to flag the user's desire to have a local Ivy home is set, but the targets which actually set ivy.home are not called. Adding init-ivy-home as a dependency of init-ivy fixes this.

        Show
        isfs Ben Schmidt added a comment - Investigation shows that the property to flag the user's desire to have a local Ivy home is set, but the targets which actually set ivy.home are not called. Adding init-ivy-home as a dependency of init-ivy fixes this.
        Hide
        isfs Ben Schmidt added a comment -

        Patch with the fix.

        Show
        isfs Ben Schmidt added a comment - Patch with the fix.
        Hide
        maartenc Maarten Coene added a comment -

        Applied your patch in SVN trunk.
        Thanks for the contribution!

        Show
        maartenc Maarten Coene added a comment - Applied your patch in SVN trunk. Thanks for the contribution!

          People

          • Assignee:
            maartenc Maarten Coene
            Reporter:
            isfs Ben Schmidt
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development