Skip to content

Commit 4b8b22c

Browse files
committed
add option to disable shade inlining in cli
1 parent 29645ce commit 4b8b22c

File tree

1 file changed

+3
-0
lines changed
  • src/main/java/xyz/wagyourtail/jvmdg/cli

1 file changed

+3
-0
lines changed

src/main/java/xyz/wagyourtail/jvmdg/cli/Main.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public static void main(String[] args) throws IOException, ClassNotFoundExceptio
4242
new Arguments("--dumpClasses", "Dump classes to the debug folder", new String[]{"-d"}, null),
4343
new Arguments("downgradeApi", "Retrieves and downgrades the java api jar", null, new String[]{"outputPath"})
4444
),
45+
new Arguments("--disable-inlining", "Disables shade inlining api's that are only used in one class into that class", null, null),
4546
new Arguments("downgrade", "Downgrades a jar or folder", null, null).addChildren(
4647
input,
4748
classpath
@@ -148,6 +149,8 @@ public static void main(String[] args) throws IOException, ClassNotFoundExceptio
148149
}
149150
}
150151
flags.multiReleaseVersions = versions;
152+
case "--disable-inlining":
153+
flags.shadeInlining = false;
151154
default:
152155
}
153156
}

0 commit comments

Comments
 (0)