How do I filter a specific folder inside a jar while the jar is located in a zip file?

208 Views Asked by At

I am using Proguard to shrink my deployment package which is a zip file containing multiple jar files.

-injars deployment_package.zip

the deployment_package.zip structure looks like this:

deployment_package.zip
- main/classes/...
- lib
  - libraryA.jar
  - libraryB.jar
    -META-INF

I wanted Proguard to filter out the META-INF folder inside libraryB.jar (so that it is not included on the outjar). How do I achieve this using proguard?

I have tried

-injars deployment_package.zip (!lib/libraryB.jar/META-INF)

but it does not seem to work (META-INF folder still exists in outjar).

0

There are 0 best solutions below