本文整理了Java中org.gradle.api.invocation.Gradle.getGradleUserHomeDir()
方法的一些代码示例,展示了Gradle.getGradleUserHomeDir()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Gradle.getGradleUserHomeDir()
方法的具体详情如下:
包路径:org.gradle.api.invocation.Gradle
类名称:Gradle
方法名:getGradleUserHomeDir
暂无
代码示例来源:origin: MinecraftForge/ForgeGradle
protected File cacheFile(String path)
{
return new File(project.getGradle().getGradleUserHomeDir(), "caches/minecraft/" + path);
}
}
代码示例来源:origin: gradle.plugin.de.qaware.seu.as.code/seuac-credentials-plugin
private static File credentialsFile(Project project, CredentialsExtension extension) {
String propertyFile = extension.getPropertyFile();
return (propertyFile != null) ? new File(propertyFile) :
new File(project.getGradle().getGradleUserHomeDir(), DEFAULT_FILENAME);
}
代码示例来源:origin: typelead/gradle-eta
@Internal
public String getCacheDir() {
return getProject().getGradle().getGradleUserHomeDir() + "/caches/etlas";
}
代码示例来源:origin: nu.studer/gradle-credentials-plugin
File gradleUserHomeDir = project.getGradle().getGradleUserHomeDir();
File credentialsFile = new File(gradleUserHomeDir, credentialsFileName);
CredentialsPersistenceManager credentialsPersistenceManager = new CredentialsPersistenceManager(credentialsFile);
代码示例来源:origin: MinecraftForge/ForgeGradle
.useGradleUserHomeDir(gradle.getGradleUserHomeDir())
.useInstallation(gradle.getGradleHomeDir())
.forProjectDirectory(getProjectDir())
代码示例来源:origin: etiennestuder/gradle-credentials-plugin
File gradleUserHomeDir = project.getGradle().getGradleUserHomeDir();
File credentialsFile = new File(gradleUserHomeDir, credentialsFileName);
CredentialsPersistenceManager credentialsPersistenceManager = new CredentialsPersistenceManager(credentialsFile);
代码示例来源:origin: typelead/gradle-eta
@Override
public void apply(Project project) {
this.project = project;
checkForValidGradleVersion();
this.mavenRepository = new EtlasMavenRepository
(project, new File(project.getGradle().getGradleUserHomeDir()
+ File.separator + "caches" + File.separator
+ "etlas"));
project.getPlugins().apply(BasePlugin.class);
EtaPluginConvention etaConvention = new EtaPluginConvention(project);
project.getConvention().getPlugins().put("eta", etaConvention);
createRootEtaExtension();
addEtlasMavenRepository();
addEtaExtensionForConfigurations();
configureInjectionTasks();
configureEtaRootTasks();
createProguardFiles();
configureTestTask();
}
代码示例来源:origin: gradle.plugin.com.palantir.graal/gradle-graal
.orElse(project.getGradle().getGradleUserHomeDir().toPath()
.resolve("caches")
.resolve("com.palantir.graal"));
代码示例来源:origin: palantir/gradle-graal
.orElse(project.getGradle().getGradleUserHomeDir().toPath()
.resolve("caches")
.resolve("com.palantir.graal"));
代码示例来源:origin: linkedin/pygradle
TaskContainer tasks = project.getTasks();
File cacheDir = new File(project.getGradle().getGradleUserHomeDir(), "pygradle-wheel-cache");
代码示例来源:origin: gradle.plugin.com.linkedin.pygradle/pygradle-plugin
TaskContainer tasks = project.getTasks();
File cacheDir = new File(project.getGradle().getGradleUserHomeDir(), "pygradle-wheel-cache");
内容来源于网络,如有侵权,请联系作者删除!