Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
2.1.1
-
None
-
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).