/** * Installs CMake. */ public void installCMake() { sdkLoader.installSdkTool(sdkLibData, SdkConstants.FD_CMAKE); }
/** * This method checks if the cache of the local and remote repositories has been already reset * this build. */ public boolean checkResetCache() { return sdkLibData.needsCacheReset(); } }
private List<File> computeFilteredBootClasspath() { // computes and caches the filtered boot classpath. // Changes here should be applied to #computeFullClasspath() if (mBootClasspathFiltered == null) { checkState(mTargetInfo != null, "Cannot call getBootClasspath() before setTargetInfo() is called."); mBootClasspathFiltered = BootClasspathBuilder.computeFilteredClasspath( mTargetInfo.getTarget(), mLibraryRequests, mErrorReporter, mSdkInfo.getAnnotationsJar()); } return mBootClasspathFiltered; }
/** Returns the compilation target, if set. */ @NonNull public IAndroidTarget getTarget() { checkState(mTargetInfo != null, "Cannot call getTarget() before setTargetInfo() is called."); return mTargetInfo.getTarget(); }
/** * Checks whether the {@link RepoManager} needs to have its local and remote packages cache * reset and invalidates them if they do. */ private void checkNeedsCacheReset(RepoManager repoManager, SdkLibData sdkLibData) { if (sdkLibData.needsCacheReset()) { repoManager.markInvalid(); sdkLibData.setNeedsCacheReset(false); } }
protected BuildToolInfo getBuildTools() { return androidBuilder.getTargetInfo().getBuildTools(); }
@NonNull @Override public SdkInfo getSdkInfo(@NonNull ILogger logger) { init(logger); return mSdkInfo; }
@Override @NonNull public SdkInfo getSdkInfo(@NonNull ILogger logger) { init(logger); return mSdkInfo; }
private DefaultSdkLoader(@NonNull File sdkLocation) { mSdkLocation = sdkLocation; mRepositories = computeRepositories(); }
public SdkInfo getSdkInfo() { SdkLoader sdkLoader = getSdkLoader(); return sdkLoader.getSdkInfo(logger); }
public static SdkLibData dontDownload() { return new SdkLibData(); }
@NonNull private List<File> computeFullBootClasspath() { // computes and caches the full boot classpath. // Changes here should be applied to #computeFilteredClasspath() if (mBootClasspathAll == null) { checkState(mTargetInfo != null, "Cannot call getBootClasspath() before setTargetInfo() is called."); mBootClasspathAll = BootClasspathBuilder.computeFullBootClasspath( mTargetInfo.getTarget(), mSdkInfo.getAnnotationsJar()); } return mBootClasspathAll; }
/** * Returns the compilation target, if set. */ @Nullable public IAndroidTarget getTarget() { checkState(mTargetInfo != null, "Cannot call getTarget() before setTargetInfo() is called."); return mTargetInfo.getTarget(); }
@NonNull @Override public SdkInfo getSdkInfo(@NonNull ILogger logger) { init(logger); return mSdkInfo; }
@Override @NonNull public SdkInfo getSdkInfo(@NonNull ILogger logger) { init(logger); return mSdkInfo; }
private DefaultSdkLoader(@NonNull File sdkLocation) { mSdkLocation = sdkLocation; mRepositories = computeRepositories(); }
public SdkInfo getSdkInfo() { SdkLoader sdkLoader = getSdkLoader(); return sdkLoader.getSdkInfo(logger); }
public static SdkLibData download( @NonNull Downloader downloader, @NonNull SettingsController settings){ return new SdkLibData(downloader, settings); }