Google is committed to advancing racial equity for Black communities. See how.

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

Fields

public static final String DELEGATE_OBJECT

The object reference in the configuration.

Public constructors

TradefedDelegator()

Public methods

static String[] clearCommandline(String[] originalCommand)

Remove from the original command line the delegate options so the underlying config does not delegate again.

String createClasspath()

Creates the classpath out of the jars in the directory.

String[] getCommandLine()
File getTfRootDir()

Returns the directory of a Tradefed binary.

boolean isStaging()

Returns whether or not this is the staging environment.

void setCommandLine(String[] command)
boolean shouldUseDelegation()

Whether or not trigger the delegation logic.

Fields

DELEGATE_OBJECT

public static final String DELEGATE_OBJECT

The object reference in the configuration.

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

Returns
String[]

Throws
ConfigurationException

createClasspath

public String createClasspath ()

Creates the classpath out of the jars in the directory.

Returns
String

getCommandLine

public String[] getCommandLine ()

Returns
String[]

getTfRootDir

public File getTfRootDir ()

Returns the directory of a Tradefed binary.

Returns
File

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.

Returns
boolean

setCommandLine

public void setCommandLine (String[] command)

Parameters
command String

shouldUseDelegation

public boolean shouldUseDelegation ()

Whether or not trigger the delegation logic.

Returns
boolean