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

Incorrect directory path resolve when running from a different directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3-RC2
    • 2.0-RC1
    • Ant
    • None
    • Windows 2000 (probably Unix also. Didn't check that)

    Description

      Suppose you have two projects in two directories:

      /projA
      /projB

      Each one of them have its own build.xml.

      When you run Ant on /projA/build.xml from /projA evrything is ok.

      When you run from "/projB" "ant -f ..\projA\build.xml" relative pathes are based on "projB" by Ivy, whereas the correct way (as Ant and Maven works) is to use "projA" as the base directory (assuming "/projA/build.xml" has "basedir" attribute: ".")

      In other words, Ivy should take the base directory as specified in the "build.xml" file in "project" tag in "basedir" attribute, and calculate it based on the location of the build.xml file; not based on the "current" directory where Ant was invoced from.

      Attachments

        1. ivy-232-patch.txt
          0.8 kB
          Matthew Jason Benson

        Issue Links

          Activity

            People

              xavier Xavier Hanin
              easyproglife easyproglife
              Votes:
              8 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: