public interface Renamer
extends java.io.Closeable
Renamer is used to run generic transformers on a JAR file.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Renamer.Builder
A
Renamer.Builder is used to configure and construct a Renamer. |
| Modifier and Type | Method and Description |
|---|---|
static Renamer.Builder |
builder()
Creates a default instance of a
Renamer.Builder. |
void |
run(java.io.File input,
java.io.File output)
Runs the renamer and all registered transformers on the input JAR file,
and then outputs it to the output JAR file.
|
void run(java.io.File input,
java.io.File output)
input - the input JAR file to processoutput - the output JAR file locationstatic Renamer.Builder builder()
Renamer.Builder.
Logs will be logged to System.out by default.
Debug logs will be swallowed by default.
Library files can be both ZIP files and directories.
The default number of threads is determined from Runtime.availableProcessors().