SdkFolderBuildInfo
public
class
SdkFolderBuildInfo
extends BuildInfo
implements
ISdkBuildInfo,
IFolderBuildInfo
java.lang.Object | ||
↳ | com.android.tradefed.build.BuildInfo | |
↳ | com.android.tradefed.build.SdkFolderBuildInfo |
A IBuildInfo
that represents an extracted Android SDK and tests and additional build
artifacts that are contained in a local file system directory.
Summary
Public constructors | |
---|---|
SdkFolderBuildInfo(String buildId, String buildName)
|
|
SdkFolderBuildInfo()
|
Public methods | |
---|---|
void
|
cleanUp()
Clean up any temporary build files |
IBuildInfo
|
clone()
|
String
|
getAndroidToolPath()
Helper method to get the absolute file path to the 'android' tool in this sdk build. |
String
|
getEmulatorToolPath()
Helper method to get the absolute file path to the 'emulator' tool in this sdk build. |
File
|
getRootDir()
Get the root folder that contains the build artifacts. |
File
|
getSdkDir()
Returns the directory that contains the extracted SDK build. |
String[]
|
getSdkTargets()
Gets the list of targets installed in this SDK build. |
File
|
getTestsDir()
Returns the directory that contains the extracted tests. |
void
|
makeToolsExecutable()
Helper method to ensure all sdk tool binaries are executable. |
void
|
setFolderBuild(IFolderBuildInfo folderBuild)
|
void
|
setRootDir(File rootDir)
Set the root directory that contains the build artifacts. |
void
|
setSdkBuild(ISdkBuildInfo sdkBuild)
|
void
|
setSdkDir(File sdkDir)
Sets the directory that contains the extracted SDK build. |
void
|
setSdkDir(File sdkDir, boolean deleteParent)
Sets the directory that contains the extracted SDK build. |
void
|
setTestsDir(File testsDir)
Sets the directory that contains the extracted tests. |
Public constructors
SdkFolderBuildInfo
public SdkFolderBuildInfo (String buildId, String buildName)
Parameters | |
---|---|
buildId |
String |
buildName |
String |
SdkFolderBuildInfo
public SdkFolderBuildInfo ()
Public methods
cleanUp
public void cleanUp ()
Clean up any temporary build files
getAndroidToolPath
public String getAndroidToolPath ()
Helper method to get the absolute file path to the 'android' tool in this sdk build.
A valid path must be provided tosetSdkDir(File)
before calling.
Returns | |
---|---|
String |
the absolute file path to the android tool. |
getEmulatorToolPath
public String getEmulatorToolPath ()
Helper method to get the absolute file path to the 'emulator' tool in this sdk build.
A valid path must be provided tosetSdkDir(File)
before calling.
Returns | |
---|---|
String |
the absolute file path to the android tool. |
getRootDir
public File getRootDir ()
Get the root folder that contains the build artifacts.
Returns | |
---|---|
File |
the File directory.
|
getSdkDir
public File getSdkDir ()
Returns the directory that contains the extracted SDK build.
Returns | |
---|---|
File |
getSdkTargets
public String[] getSdkTargets ()
Gets the list of targets installed in this SDK build.
A valid path must be provided tosetSdkDir(File)
before calling.
Returns | |
---|---|
String[] |
a list of defined targets or null if targets could not be retrieved |
getTestsDir
public File getTestsDir ()
Returns the directory that contains the extracted tests.
Returns | |
---|---|
File |
makeToolsExecutable
public void makeToolsExecutable ()
Helper method to ensure all sdk tool binaries are executable.
setRootDir
public void setRootDir (File rootDir)
Set the root directory that contains the build artifacts.
Parameters | |
---|---|
rootDir |
File |
setSdkDir
public void setSdkDir (File sdkDir)
Sets the directory that contains the extracted SDK build.
Parameters | |
---|---|
sdkDir |
File : the path to the sdk.
|
setSdkDir
public void setSdkDir (File sdkDir, boolean deleteParent)
Sets the directory that contains the extracted SDK build.
Parameters | |
---|---|
sdkDir |
File : the path to the sdk |
deleteParent |
boolean : if true , delete the parent directory of sdkDir on
cleanUp() . If false , only sdkDir will be deleted.
|
setTestsDir
public void setTestsDir (File testsDir)
Sets the directory that contains the extracted tests.
Parameters | |
---|---|
testsDir |
File |
Interfaces
Classes
- AppBuildInfo
- AppDeviceBuildInfo
- BootstrapBuildProvider
- BuildInfo
- BuildInfoKey
- BuildSerializedVersion
- DeviceBuildDescriptor
- DeviceBuildInfo
- DeviceFolderBuildInfo
- ExistingBuildProvider
- FileDownloadCache
- FileDownloadCacheFactory
- FileDownloadCacheWrapper
- FolderBuildInfo
- KernelBuildInfo
- KernelDeviceBuildInfo
- LocalAppBuildProvider
- LocalDeviceBuildProvider
- LocalFolderBuildProvider
- LocalSdkBuildProvider
- OtaDeviceBuildInfo
- OtatoolsBuildInfo
- OtaToolsDeviceBuildInfo
- OtaZipfileBuildProvider
- SdkBuildInfo
- SdkFolderBuildInfo
- StubBuildProvider
- VersionedFile
Enums
Exceptions