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

cachefileset produces an empty fileset when the cache refers to libs in directories that only have the root directory in common

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0-RC1
    • 2.0-RC2
    • Ant
    • None
    • All environments

    Description

      If the cache is made up of libs from different directories such that they can only be references from the root directory, the fileset contains paths with the first character missing.

      And here's a fix:
      In class org.apache.ivy.ant.IvyCacheFileset.getPath(final File base, final File file):

      private String getPath(final File base, final File file) {
      if(base.getAbsolutePath().equals("/"))

      { return file.getAbsolutePath().substring(base.getAbsolutePath().length()); }

      return file.getAbsolutePath().substring(base.getAbsolutePath().length() + 1);
      }

      Attachments

        Activity

          People

            maartenc Maarten Coene
            dadrox Chris Wood
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: