I'm using the obfuscation library yGuard and I want to exclude all classes from being renamed that extend Enum
. So far this works fine:
<rename>
<keep>
<class extends="java.lang.Enum" classes="private" fields="private" methods="private"/>
</keep>
</rename>
Now all my classes that are an enum are not being renamed, as it should. But now, I want some classes that are an Enum to be renamed (because they really have to be obfuscated). How do I do that? I tried to exclude these classes from the , but it doesn't work:
<rename>
<keep>
<class extends="java.lang.Enum" classes="private" fields="private" methods="private">
<patternset>
<exclude name="com.fuzzlecheck.licensing.Edition"/>
</patternset>
</class>
</keep>
</rename>
question from:
https://stackoverflow.com/questions/65944527/yguard-exclude-elements-from-keep-section 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…