gpt4 book ai didi

org.gradle.workers.WorkerConfiguration.params()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 08:25:05 26 4
gpt4 key购买 nike

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

WorkerConfiguration.params介绍

暂无

代码示例

代码示例来源:origin: gradle.plugin.com.github.spotbugs/spotbugs-gradle-plugin

@TaskAction
public void run() {
  new SpotBugsClasspathValidator(JavaVersion.current()).validateClasspath(
      getSpotbugsClasspath().getFiles().stream().map(File::getName).collect(Collectors.toSet()));
  SpotBugsSpec spec = generateSpec();
  //workaround for https://github.com/spotbugs/spotbugs-gradle-plugin/issues/61
  if(reports.getEnabledReports().isEmpty()) {
    getProject().getLogger().lifecycle("WARNING: No SpotBugs report(s) were configured; aborting execution of {}", getPath());
    return;
  }
  workerExecutor.submit(SpotBugsRunner.class, config -> {
    config.params(spec, getIgnoreFailures(), reports.getFirstEnabled().getDestination());
    config.setClasspath(getSpotbugsClasspath());
    config.setForkMode(ForkMode.ALWAYS);
    config.forkOptions( options -> {
      options.setDebug(spec.isDebugEnabled());
      options.setJvmArgs(spec.getJvmArgs());
      options.setMaxHeapSize(spec.getMaxHeapSize());
    });
    config.setIsolationMode(IsolationMode.PROCESS);
  });
}

代码示例来源:origin: gradle.plugin.com.github.anolivetree/gradle-clojure-plugin

public void submit(Action<ClojureWorkerConfiguration> action) {
 ClojureWorkerConfiguration config = new ClojureWorkerConfiguration();
 action.execute(config);
 FileCollection realClasspath = config.getClasspath().plus(resolveShim());
 workerExecutor.submit(ClojureWorker.class, worker -> {
  worker.setIsolationMode(IsolationMode.PROCESS);
  worker.params(config.getNamespace(), config.getFunction(), config.getArgs());
  config.getConfigureFork().forEach(worker::forkOptions);
  worker.forkOptions(fork -> fork.systemProperty("shim.classpath", realClasspath.getAsPath()));
  worker.classpath(resolveWorker());
 });
}

代码示例来源:origin: melix/japicmp-gradle-plugin

List<JApiCmpWorkerAction.Archive> current = JapicmpTask.this.newArchives != null ? toArchives(JapicmpTask.this.newArchives) : inferArchives(newClasspath);
workerConfiguration.setDisplayName("Comparing " + current + " with " + baseline);
workerConfiguration.params(

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com