mirror of
https://github.com/revanced/smali.git
synced 2025-05-05 09:04:25 +02:00
Allow additional bootclasspath files to be added to the default, by prepending the bootclasspath value with a :
git-svn-id: https://smali.googlecode.com/svn/trunk@630 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
3f7739cd09
commit
f5defb97c0
@ -190,7 +190,12 @@ public class main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (commandLine.hasOption("c")) {
|
if (commandLine.hasOption("c")) {
|
||||||
bootClassPath = commandLine.getOptionValue("c");
|
String bcp = commandLine.getOptionValue("c");
|
||||||
|
if (bcp.charAt(0) == ':') {
|
||||||
|
bootClassPath = bootClassPath + bcp;
|
||||||
|
} else {
|
||||||
|
bootClassPath = bcp;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (commandLine.hasOption("C")) {
|
if (commandLine.hasOption("C")) {
|
||||||
@ -379,7 +384,8 @@ public class main {
|
|||||||
|
|
||||||
Option classPathOption = OptionBuilder.withLongOpt("bootclasspath")
|
Option classPathOption = OptionBuilder.withLongOpt("bootclasspath")
|
||||||
.withDescription("the bootclasspath jars to use, for analysis. Defaults to " +
|
.withDescription("the bootclasspath jars to use, for analysis. Defaults to " +
|
||||||
"core.jar:ext.jar:framework.jar:android.policy.jar:services.jar")
|
"core.jar:ext.jar:framework.jar:android.policy.jar:services.jar. If you specify a value that " +
|
||||||
|
"begins with a :, it will be appended to the default bootclasspath")
|
||||||
.hasOptionalArg()
|
.hasOptionalArg()
|
||||||
.withArgName("BOOTCLASSPATH")
|
.withArgName("BOOTCLASSPATH")
|
||||||
.create("c");
|
.create("c");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user