gpt4 book ai didi

org.jboss.windup.exec.configuration.WindupConfiguration.getInputPaths()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 13:45:05 25 4
gpt4 key购买 nike

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

WindupConfiguration.getInputPaths介绍

[英]Contains the path to the input file (or directory) to be processed
[中]包含要处理的输入文件(或目录)的路径

代码示例

代码示例来源:origin: windup/windup

private void printConfigInfo(WindupConfiguration windupConfiguration)
{
  LOG.info("");
  if (windupConfiguration.getInputPaths().size() == 1)
  {
    LOG.info("Input Application:" + windupConfiguration.getInputPaths().iterator().next());
  }
  else
  {
    LOG.info("Input Applications:");
    for (Path inputPath : windupConfiguration.getInputPaths())
    {
      LOG.info("\t" + inputPath);
    }
    LOG.info("");
  }
  LOG.info("Output Path:" + windupConfiguration.getOutputDirectory());
  LOG.info("");
  for (Map.Entry<String, Object> entrySet : windupConfiguration.getOptionMap().entrySet())
  {
    LOG.info("\t" + entrySet.getKey() + ": " + entrySet.getValue());
  }
}

代码示例来源:origin: windup/windup

private void validateConfig(WindupConfiguration windupConfiguration)
{
  Assert.notNull(windupConfiguration,
        Util.WINDUP_BRAND_NAME_ACRONYM + " configuration must not be null. (Call default execution if no configuration is required.)");
  Collection<Path> inputPaths = windupConfiguration.getInputPaths();
  Assert.notNull(inputPaths, "Path to the application must not be null!");
  for (Path inputPath : inputPaths)
  {
    Assert.notNull(inputPath, "Path to the application must not be null!");
    Checks.checkFileOrDirectoryToBeRead(inputPath.toFile(), "Application");
  }
  Path outputDirectory = windupConfiguration.getOutputDirectory();
  Assert.notNull(outputDirectory, "Output directory must not be null!");
  Checks.checkDirectoryToBeFilled(outputDirectory.toFile(), "Output directory");
}

代码示例来源:origin: windup/windup

if (!validateInputAndOutputPath(windupConfiguration.getInputPaths(), windupConfiguration.getOutputDirectory()))
  return;
if (windupConfiguration.getInputPaths().size() == 1)
  System.out.println("Input Application:" + windupConfiguration.getInputPaths().iterator().next());
  for (Path inputPath : windupConfiguration.getInputPaths())

代码示例来源:origin: org.jboss.windup/windup-bootstrap

if (!validateInputAndOutputPath(windupConfiguration.getInputPaths(), windupConfiguration.getOutputDirectory()))
  return;
if (windupConfiguration.getInputPaths().size() == 1)
  System.out.println("Input Application:" + windupConfiguration.getInputPaths().iterator().next());
  for (Path inputPath : windupConfiguration.getInputPaths())

代码示例来源:origin: windup/windup

for (Path inputPath : configuration.getInputPaths())
LOG.info(Util.WINDUP_BRAND_NAME_ACRONYM + " execution took " + seconds + " seconds to execute on input: " + configuration.getInputPaths()
      + "!");

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