Starting March 27, 2025, we recommend using android-latest-release instead of aosp-main to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
TradefedDelegator
public
class
TradefedDelegator
extends Object
| java.lang.Object
|
| ↳ |
com.android.tradefed.config.proxy.TradefedDelegator
|
Objects that helps delegating the invocation to another Tradefed binary.
Summary
Constants |
String |
DELEGATE_OBJECT
The object reference in the configuration.
|
Constants
DELEGATE_OBJECT
public static final String DELEGATE_OBJECT
The object reference in the configuration.
Constant Value:
"DELEGATE"
Public constructors
TradefedDelegator
public TradefedDelegator ()
Public methods
clearCommandline
public static String[] clearCommandline (String[] originalCommand)
Remove from the original command line the delegate options so the underlying config does not
delegate again.
| Parameters |
originalCommand |
String |
clearCommandlineFromOneArg
public static String[] clearCommandlineFromOneArg (String[] originalCommand,
String optionName)
Remove a given option from the command line.
| Parameters |
originalCommand |
String |
optionName |
String |
clearCommandlineFromOneArg
public static String[] clearCommandlineFromOneArg (String[] originalCommand,
String optionName,
boolean booleanOption)
Remove a given option from the command line.
| Parameters |
originalCommand |
String |
optionName |
String |
booleanOption |
boolean |
createClasspath
public String createClasspath ()
Creates the classpath out of the jars in the directory.
getCommandLine
public String[] getCommandLine ()
getEnvironment
public getEnvironment ()
getTfRootDir
public File getTfRootDir ()
Returns the directory of a Tradefed binary.
isStaging
public boolean isStaging ()
Returns whether or not this is the staging environment. We do not want to delegate in staging
by default, only if the "staging_delegated" is set.
noopAllocation
public boolean noopAllocation ()
setCommandLine
public void setCommandLine (String[] command)
| Parameters |
command |
String |
shouldUseDelegation
public boolean shouldUseDelegation ()
Whether or not trigger the delegation logic.
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 2025-12-04 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 2025-12-04 UTC."],[],[]]