|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.sdklib.BuildToolInfo
public class BuildToolInfo
Information on a specific build-tool folder.
For unit tests, see: - sdklib/src/test/.../LocalSdkTest - sdklib/src/test/.../SdkManagerTest - sdklib/src/test/.../BuildToolInfoTest
Nested Class Summary | |
---|---|
static class |
BuildToolInfo.PathId
|
Field Summary | |
---|---|
static int |
SDK_LEVEL_FOR_MULTIDEX_NATIVE_SUPPORT
First version with native multi-dex support. |
Constructor Summary | |
---|---|
BuildToolInfo(com.android.repository.Revision revision,
java.io.File path)
|
|
BuildToolInfo(com.android.repository.Revision revision,
java.io.File mainPath,
java.io.File aapt,
java.io.File aidl,
java.io.File dx,
java.io.File dxJar,
java.io.File llmvRsCc,
java.io.File androidRs,
java.io.File androidRsClang,
java.io.File bccCompat,
java.io.File ldArm,
java.io.File ldArm64,
java.io.File ldX86,
java.io.File ldMips,
java.io.File zipAlign)
|
Method Summary | |
---|---|
boolean |
canRunOnJvm()
Checks whether this build-tools package can run on the current JVM. |
protected com.android.repository.Revision |
getCurrentJvmVersion()
|
java.io.File |
getLocation()
Returns the build-tool revision-specific folder. |
java.lang.String |
getPath(BuildToolInfo.PathId pathId)
Returns the path of a build-tool component. |
com.android.repository.Revision |
getRevision()
Returns the revision. |
java.util.Properties |
getRuntimeProps()
Parses the build-tools runtime.props file, if present. |
boolean |
isValid(com.android.utils.ILogger log)
Checks whether the build-tool is valid by verifying that the expected binaries are actually present. |
java.lang.String |
toString()
Returns a debug representation suitable for unit-tests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SDK_LEVEL_FOR_MULTIDEX_NATIVE_SUPPORT
Constructor Detail |
---|
public BuildToolInfo(@NonNull com.android.repository.Revision revision, @NonNull java.io.File path)
public BuildToolInfo(@NonNull com.android.repository.Revision revision, @NonNull java.io.File mainPath, @NonNull java.io.File aapt, @NonNull java.io.File aidl, @NonNull java.io.File dx, @NonNull java.io.File dxJar, @NonNull java.io.File llmvRsCc, @NonNull java.io.File androidRs, @NonNull java.io.File androidRsClang, @Nullable java.io.File bccCompat, @Nullable java.io.File ldArm, @Nullable java.io.File ldArm64, @Nullable java.io.File ldX86, @Nullable java.io.File ldMips, @NonNull java.io.File zipAlign)
Method Detail |
---|
@NonNull public com.android.repository.Revision getRevision()
@NonNull public java.io.File getLocation()
getPath(PathId)
if you need the path to a
specific tool.
public java.lang.String getPath(BuildToolInfo.PathId pathId)
pathId
- the id representing the path to return.
public boolean isValid(@Nullable com.android.utils.ILogger log)
log
- An optional logger. If non-null, errors will be printed there.
@NonNull public java.util.Properties getRuntimeProps()
public boolean canRunOnJvm()
@Nullable protected com.android.repository.Revision getCurrentJvmVersion() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |