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

cachefileset returns all cache files for empty conf

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3-RC1
    • Ant
    • None
    • Windows NT, ant 1.6.2

    Description

      In case when conf contains no artifacts cachefileset returns all.
      For example ivy.xml contains one conf ("default" and "runtime") where "runtime" conf have no dependencies and "xxx" conf is not declared anywhere:
      <ivy-module version="1.0">
      <info organisation="cft" module="vp" status="stable"/>
      <configurations>
      <conf name="default"/>
      <conf name="runtime"/>
      </configurations>
      <dependencies>
      <dependency org="sun" name="servlet" rev="2.3" conf="default"/>
      </dependencies>
      </ivy-module>

      In build.xml:
      <ivy:cachefileset setid="p1" conf="xxx" type="jar"/> <!-- all files instead 0 (there are no such conf at all) -->
      <ivy:cachefileset setid="p2" conf="runtime" type="jar"/> <!-- all files instead 0 (no declared dependencies for runtime) -->
      <ivy:cachefileset setid="p3" conf="default" type="jar"/> <!-- one file. that's right -->
      <ivy:cachefileset setid="p4" conf="runtime,xxx" type="jar"/> <!- all files instead 0 -->
      <ivy:cachefileset setid="p5" conf="runtime,xxx,default" type="jar"/> <!-- one file. that's right -->

      In same cases using ivy:retrieve givs rights results.

      With best regards? Ivlev Dmitry.

      Attachments

        Activity

          People

            xavier Xavier Hanin
            elf Ivlev Dmitry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: