Java Code Examples for org.gradle.StartParameter#getProjectCacheDir()
The following examples show how to use
org.gradle.StartParameter#getProjectCacheDir() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GradleParameters.java From gradle-metrics-plugin with Apache License 2.0 | 6 votes |
public static GradleParameters fromGradle(org.gradle.api.invocation.Gradle gradle) { StartParameter start = gradle.getStartParameter(); List<KeyValue> projectProperties = KeyValue.mapToKeyValueList(start.getProjectProperties()); return new GradleParameters(start.getTaskRequests(), start.getExcludedTaskNames(), start.isBuildProjectDependencies(), start.getCurrentDir(), start.getProjectDir(), projectProperties, start.getGradleUserHomeDir(), start.getSettingsFile(), start.getBuildFile(), start.getInitScripts(), start.isDryRun(), start.isRerunTasks(), start.isProfile(), start.isContinueOnFailure(), start.isOffline(), start.getProjectCacheDir(), start.isRefreshDependencies(), start.getMaxWorkerCount(), start.isConfigureOnDemand() ); }
Example 2
Source File: BuildScopeServices.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
protected CacheRepository createCacheRepository() { CacheFactory factory = get(CacheFactory.class); StartParameter startParameter = get(StartParameter.class); DefaultCacheScopeMapping scopeMapping = new DefaultCacheScopeMapping(startParameter.getGradleUserHomeDir(), startParameter.getProjectCacheDir(), GradleVersion.current()); return new DefaultCacheRepository( scopeMapping, factory); }
Example 3
Source File: BuildScopeServices.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
protected CacheRepository createCacheRepository() { CacheFactory factory = get(CacheFactory.class); StartParameter startParameter = get(StartParameter.class); DefaultCacheScopeMapping scopeMapping = new DefaultCacheScopeMapping(startParameter.getGradleUserHomeDir(), startParameter.getProjectCacheDir(), GradleVersion.current()); return new DefaultCacheRepository( scopeMapping, startParameter.getCacheUsage(), factory); }
Example 4
Source File: BuildScopeServices.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
protected CacheRepository createCacheRepository() { CacheFactory factory = get(CacheFactory.class); StartParameter startParameter = get(StartParameter.class); DefaultCacheScopeMapping scopeMapping = new DefaultCacheScopeMapping(startParameter.getGradleUserHomeDir(), startParameter.getProjectCacheDir(), GradleVersion.current()); return new DefaultCacheRepository( scopeMapping, factory); }
Example 5
Source File: BuildScopeServices.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
protected CacheRepository createCacheRepository() { CacheFactory factory = get(CacheFactory.class); StartParameter startParameter = get(StartParameter.class); DefaultCacheScopeMapping scopeMapping = new DefaultCacheScopeMapping(startParameter.getGradleUserHomeDir(), startParameter.getProjectCacheDir(), GradleVersion.current()); return new DefaultCacheRepository( scopeMapping, startParameter.getCacheUsage(), factory); }