What steps will reproduce the problem? 1. Use a jar with folder entries 2. Run the jarjar task with a keep rule that pulls in some transitive dependencies from the jar in step 1 3.
What is the expected output? What do you see instead? The resulting jar is nicely created but it is polluted with empty folder from the dependency jar. In my case, class a.b.c.D is pulled in but Jarjar creates folder entries for a.e, a.f, a.b.g, a.b.i and so on even though they are not needed. I would expect these folders to not be copied since none of their content (whether class or reasources) is required.
What version of the product are you using? On what operating system? I'm using Ant 1.7.1 (from Maven) and Jarjar 1.0.
Please provide any additional information below.
Comment #1
Posted on May 3, 2012 by Swift BearDoes this issue get closed in your 1.3 release?
Comment #2
Posted on May 5, 2012 by Swift BearIt looked like r133 was supposed to fix this, but I just upgraded to 1.3 and I am still seeing this behavior.
Comment #3
Posted on May 6, 2013 by Quick BearI still see this in version 1.4.
Comment #4
Posted on Jun 15, 2015 by Helpful HippoAs for me, Using lib ver. 1.4 instead of 1.0 helped to solve this issue with empty folder
Status: New
Labels:
Type-Defect
Priority-Medium