proguard icon indicating copy to clipboard operation
proguard copied to clipboard

Support for "dontnote" for resource files

Open Lonzak opened this issue 10 months ago • 1 comments

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...

Lonzak avatar Feb 21 '25 14:02 Lonzak

This worked for me:

-dontnote module-info
-dontnote META-INF**

Or

-dontnote "module-info"
-dontnote "META-INF**"

mahozad avatar Jun 04 '25 07:06 mahozad