gpt4 book ai didi

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

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

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

WorkerConfiguration.setParams介绍

暂无

代码示例

代码示例来源:origin: gradle.plugin.com.github.ramonwirsch/fopRenderer

@TaskAction
void run() {
  workerExecutor.submit(TransformWorker.class, (config) -> {
    config.setIsolationMode(IsolationMode.NONE);
    config.setParams(getStylesheet(), getOutputFile(), renderConfig.getRootSrc());
  });
}

代码示例来源:origin: gradle.plugin.uk.co.boothen.gradle/gradle-wsimport

@TaskAction
public void taskAction() {
  for (Wsdl wsdl : wsdls) {
    getWorkerExecutor().submit(WsImportRunnable.class, workerConfiguration -> {
      workerConfiguration.setDisplayName("Importing WSDL");
      workerConfiguration.setParams(new WsImportConfiguration(wsdlSourceRoot,
                                  generatedSourceRoot,
                                  generatedClassesRoot,
                                  keep,
                                  extension,
                                  verbose,
                                  quiet,
                                  debug,
                                  xnocompile,
                                  xadditionalHeaders,
                                  xnoAddressingDatabinding,
                                  xdebug,
                                  target,
                                  wsdl));
      workerConfiguration.classpath(jaxwsToolsConfiguration.getFiles());
    });
  }
}

代码示例来源:origin: gradle.plugin.com.github.ramonwirsch/fopRenderer

@TaskAction
private void execute(IncrementalTaskInputs inputs) {
  update = false;
  inputs.outOfDate(change -> {
    File file = change.getFile();
    logger.info("out of date: {}", file.getName());
    update = true;
  });
  inputs.removed(change -> {
    File file = change.getFile();
    logger.info("removed: {}", file);
    update = true;
  });
  try {
    String resourceBaseDir = renderConfig.getResourcesBaseDir().toURI().toURL().toExternalForm();
    workerExecutor.submit(RenderWorker.class, (config) -> {
      config.setIsolationMode(IsolationMode.NONE);
      config.setParams(getInputFile(), getOutputFile(), resourceBaseDir);
    });
  } catch (MalformedURLException e) {
    logger.error("ResourceBaseDir is incorrectly configured!", e);
  }
}

代码示例来源:origin: gradle.plugin.org.codeartisans.gradle/gradle-wsdl-plugin

@Override
  public void execute( WorkerConfiguration config ) {
    config.setDisplayName( "Import WSDL " + wsdl.getName() + " into " + wsdl.getPackageName() );
    config.setParams( wsImportArgumentsFor( wsdl ) );
    config.setIsolationMode( IsolationMode.CLASSLOADER );
    config.classpath( jaxwsToolsConfiguration.getFiles() );
  }
} );

代码示例来源:origin: com.diffplug.gradle/image-grinder

workerConfig.setParams(SerializableRef.create(ImageGrinderTask.this), outOfDate.getFile());
  });
});

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