Sometimes it's unnecessary to decompile certain classes, for example libraries such as Apache Commons. Skipping the decompilation of these classes can speed up the overall decompilation time. Currently there is --only option, but it doesn't cover cases where we don't know which classes in the JAR to decompile.
This PR adds that option to the decompiler (currently it's --excluded-class-regex or -exc for shorthand). It will skip the decompilation if the specified regex matches the fully qualified name of the class.
Examples:
# exclude all classes in org.apache package
java -jar vineflower.jar '-exc=org/apache/.*' input.jar out_dir
# exclude classes from multiple packages
java -jar vineflower.jar '-exc=org/(apache|bouncycastle)/.*|com/google/android/.*' input.jar out_dir
Sometimes it's unnecessary to decompile certain classes, for example libraries such as Apache Commons. Skipping the decompilation of these classes can speed up the overall decompilation time. Currently there is
--only
option, but it doesn't cover cases where we don't know which classes in the JAR to decompile.This PR adds that option to the decompiler (currently it's
--excluded-class-regex
or-exc
for shorthand). It will skip the decompilation if the specified regex matches the fully qualified name of the class.Examples: