Stay organized with collections
Save and categorize content based on your preferences.
SandboxConfigUtil
public
class
SandboxConfigUtil
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.sandbox.SandboxConfigUtil
|
A utility class for managing IConfiguration
when doing sandboxing.
Summary
Public methods |
static
File
|
dumpConfigForVersion(String classpath, IRunUtil runUtil, String[] args, SandboxConfigDump.DumpCmd dump, File globalConfig)
|
static
File
|
dumpConfigForVersion(File rootDir, IRunUtil runUtil, String[] args, SandboxConfigDump.DumpCmd dump, File globalConfig)
Create a subprocess based on the Tf jars from any version, and dump the xml IConfiguration based on the command line args.
|
static
File
|
dumpConfigForVersion(String classpath, IRunUtil runUtil, String[] args, SandboxConfigDump.DumpCmd dump, File globalConfig, boolean skipJavaCheck)
Create a subprocess based on the Tf jars from any version, and dump the xml IConfiguration based on the command line args.
|
static
File
|
dumpFilteredGlobalConfig( exclusionPatterns)
Create a global config with only the keystore to make it available in subprocess.
|
Public constructors
SandboxConfigUtil
public SandboxConfigUtil ()
Public methods
dumpConfigForVersion
public static File dumpConfigForVersion (String classpath,
IRunUtil runUtil,
String[] args,
SandboxConfigDump.DumpCmd dump,
File globalConfig)
Parameters |
classpath |
String |
runUtil |
IRunUtil |
args |
String |
dump |
SandboxConfigDump.DumpCmd |
globalConfig |
File |
dumpConfigForVersion
public static File dumpConfigForVersion (File rootDir,
IRunUtil runUtil,
String[] args,
SandboxConfigDump.DumpCmd dump,
File globalConfig)
Create a subprocess based on the Tf jars from any version, and dump the xml IConfiguration
based on the command line args.
Parameters |
rootDir |
File : the directory containing all the jars from TF. |
runUtil |
IRunUtil : the IRunUtil to use to run the command. |
args |
String : the command line args. |
dump |
SandboxConfigDump.DumpCmd : the DumpCmd driving some of the outputs. |
globalConfig |
File : the file describing the global configuration to be used. |
Returns |
File |
A ERROR(/File) containing the xml dump from the command line. |
dumpConfigForVersion
public static File dumpConfigForVersion (String classpath,
IRunUtil runUtil,
String[] args,
SandboxConfigDump.DumpCmd dump,
File globalConfig,
boolean skipJavaCheck)
Create a subprocess based on the Tf jars from any version, and dump the xml IConfiguration
based on the command line args.
Parameters |
classpath |
String : the classpath to use to run the sandbox. |
runUtil |
IRunUtil : the IRunUtil to use to run the command. |
args |
String : the command line args. |
dump |
SandboxConfigDump.DumpCmd : the DumpCmd driving some of the outputs. |
globalConfig |
File : the file describing the global configuration to be used. |
skipJavaCheck |
boolean : whether or not to skip the java version check |
Returns |
File |
A ERROR(/File) containing the xml dump from the command line. |
dumpFilteredGlobalConfig
public static File dumpFilteredGlobalConfig ( exclusionPatterns)
Create a global config with only the keystore to make it available in subprocess.
Parameters |
exclusionPatterns |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-06-06 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-06-06 UTC."],[],[]]