proguard
proguard copied to clipboard
Support for "dontnote" for resource files
I am obfuscating a WAR file and getting lots of notes on resource files:
[proguard] Note: duplicate definition of resource file [META-INF/MANIFEST.MF]
[proguard] Note: duplicate definition of resource file [META-INF/LICENSE.txt]
[proguard] Note: duplicate definition of resource file [META-INF/MANIFEST.MF]
[proguard] Note: duplicate definition of resource file [META-INF/LICENSE.txt]
... hundreds more
I tried adding '-dontnote META-INF/LICENSE.txt' but that doesn't work. I searched a bit and it seems possible to filter out those resources. However whatever I tried it wasn't working. Maybe the war file is special in that area because the resources are in the contained jar files...
But anyway the most convenient way would be to support 'dontnote' on resource files as well...
This worked for me:
-dontnote module-info
-dontnote META-INF**
Or
-dontnote "module-info"
-dontnote "META-INF**"