本文整理了Java中org.gradle.api.Project.mkdir()
方法的一些代码示例,展示了Project.mkdir()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.mkdir()
方法的具体详情如下:
包路径:org.gradle.api.Project
类名称:Project
方法名:mkdir
暂无
代码示例来源:origin: gradle.plugin.com.github.harbby/gradle-serviceloader
throws Exception
super.getProject().mkdir(outputDirectory);
List<URL> classpath = new ArrayList<>();
for (File file : main.getRuntimeClasspath().getFiles()) {
代码示例来源:origin: com.google.cloud.tools/appengine-gradle-plugin
/** Task entrypoint : Stage the flexible application. */
@TaskAction
public void stageAction() throws AppEngineException {
getProject().delete(stagingConfig.getStagingDirectory());
getProject().mkdir(stagingConfig.getStagingDirectory().getAbsolutePath());
AppEngineFlexibleStaging staging = new CloudSdkAppEngineFlexibleStaging();
staging.stageFlexible(stagingConfig);
}
}
代码示例来源:origin: GoogleCloudPlatform/app-gradle-plugin
/** Task entrypoint : Stage the app.yaml based application. */
@TaskAction
public void stageAction() throws AppEngineException {
getProject().delete(appYamlExtension.getStagingDirectory());
getProject().mkdir(appYamlExtension.getStagingDirectory().getAbsolutePath());
AppYamlProjectStaging staging = new AppYamlProjectStaging();
staging.stageArchive(appYamlExtension.toAppYamlProjectStageConfiguration());
}
}
代码示例来源:origin: com.palantir.gradle.conjure/gradle-conjure
/**
* Entry point for the task.
*/
public void compileFiles() {
getSource().getFiles().forEach(file -> {
GeneratorOptions generatorOptions = getOptions();
getProject().exec(execSpec -> {
ImmutableList.Builder<String> commandArgsBuilder = ImmutableList.builder();
File thisOutputDirectory = outputDirectoryFor(file);
getProject().mkdir(thisOutputDirectory);
commandArgsBuilder.add(
getExecutablePath().getAbsolutePath(),
"generate",
file.getAbsolutePath(),
thisOutputDirectory.getAbsolutePath());
List<String> additionalArgs = RenderGeneratorOptions.toArgs(generatorOptions, requiredOptions(file));
getLogger().info("Running generator with args: {}", additionalArgs);
commandArgsBuilder.addAll(additionalArgs);
execSpec.commandLine(commandArgsBuilder.build().toArray());
});
});
}
内容来源于网络,如有侵权,请联系作者删除!