org.gradle.api.Project.mkdir()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(198)

本文整理了Java中org.gradle.api.Project.mkdir()方法的一些代码示例,展示了Project.mkdir()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.mkdir()方法的具体详情如下:
包路径:org.gradle.api.Project
类名称:Project
方法名:mkdir

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());
    });
  });
}

相关文章