Uploaded image for project: 'Maven Ant Tasks (RETIRED)'
  1. Maven Ant Tasks (RETIRED)
  2. MANTTASKS-200

cacheDepedencyRefs not compatible with ant or antcall tasks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.1.1
    • None
    • dependencies task
    • None

    Description

      Adding cacheDependencyRefs to the artifact:dependencies task changes the scope of declared references.

      Attached are two ant build files identical apart from the first (build.xml) has no caching, the second (build_with_cache) with cache set to true.

      With caching turned off the test.path is set correctly for the build2 antcall, set to log4j.
      With caching turned on, the test.path is not remembered for the build2 antcall, even though inheritRefs is set to true. Instead it reverts to the original test.path fileset declaration instead.

      Unfortunately I have found that cacheDependencyRefs is required, as otherwise the permanent generation requirements get huge (in my case I gave up after allocating 500mb of perm gen to ant).

      Attachments

        1. build_with_antcache.xml
          1 kB
          Peter Phillips
        2. build_with_cache.xml
          1 kB
          Peter Phillips
        3. build.xml
          1 kB
          Peter Phillips

        Activity

          People

            Unassigned Unassigned
            petergphillips Peter Phillips
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: