gpt4 book ai didi

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

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

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

WindupConfiguration.getOutputDirectory介绍

[英]Contains the directory to put the output to (migration report, temporary files, exported graph data...).
[中]包含要将输出放在其中的目录(迁移报告、临时文件、导出的图形数据…)。

代码示例

代码示例来源: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: org.jboss.windup.web.addons/windup-web-support-impl

@Override
public Handler createLogHandler(WindupConfiguration configuration) throws IOException
  Path logFilePath = getLogFilePath(configuration.getOutputDirectory());
  final FileWriter writer = new FileWriter(logFilePath.toFile());
  return new Handler()

代码示例来源: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 (!overwrite && pathNotEmpty(windupConfiguration.getOutputDirectory().toFile()))
  String promptMsg = "Overwrite all contents of \"" + windupConfiguration.getOutputDirectory().toString()
        + "\" (anything already in the directory will be deleted)?";
  if (!Bootstrap.prompt(promptMsg, false, batchMode.get()))
    String outputPath = windupConfiguration.getOutputDirectory().toString();
    System.err.println("Files exist in " + outputPath + ", but --overwrite not specified. Aborting!");
    return;
FileUtils.deleteQuietly(windupConfiguration.getOutputDirectory().toFile());
Path graphPath = windupConfiguration.getOutputDirectory().resolve(GraphContextFactory.DEFAULT_GRAPH_SUBDIRECTORY);
System.out.println("Output Path:" + windupConfiguration.getOutputDirectory());
System.out.println();
  if (!skipReports)
    Path indexHtmlPath = windupConfiguration.getOutputDirectory().resolve("index.html").normalize().toAbsolutePath();
    System.out.println("Report created: " + indexHtmlPath + System.getProperty("line.separator")
          + "              Access it at this URL: " + indexHtmlPath.toUri());

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

if (!overwrite && pathNotEmpty(windupConfiguration.getOutputDirectory().toFile()))
  String promptMsg = "Overwrite all contents of \"" + windupConfiguration.getOutputDirectory().toString()
        + "\" (anything already in the directory will be deleted)?";
  if (!context.getPrompt().promptBoolean(promptMsg, false))
    String outputPath = windupConfiguration.getOutputDirectory().toString();
    return Results.fail("Files exist in " + outputPath + ", but --overwrite not specified. Aborting!");
FileUtils.deleteQuietly(windupConfiguration.getOutputDirectory().toFile());
Path graphPath = windupConfiguration.getOutputDirectory().resolve("graph");
try (GraphContext graphContext = graphContextFactory.create(graphPath, true))
  Path indexHtmlPath = windupConfiguration.getOutputDirectory().resolve("index.html").normalize().toAbsolutePath();
  return Results.success("Report created: " + indexHtmlPath + System.getProperty("line.separator")
        + "              Access it at this URL: " + indexHtmlPath.toUri());

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

if (!validateInputAndOutputPath(windupConfiguration.getInputPaths(), windupConfiguration.getOutputDirectory()))
  return;
if (!overwrite && pathNotEmpty(windupConfiguration.getOutputDirectory().toFile()))
  String promptMsg = "Overwrite all contents of \"" + windupConfiguration.getOutputDirectory().toString()
        + "\" (anything already in the directory will be deleted)?";
  if (!Bootstrap.prompt(promptMsg, false, batchMode.get()))
    String outputPath = windupConfiguration.getOutputDirectory().toString();
    System.err.println("Files exist in " + outputPath + ", but --overwrite not specified. Aborting!");
    return;
FileUtils.deleteQuietly(windupConfiguration.getOutputDirectory().toFile());
Path graphPath = windupConfiguration.getOutputDirectory().resolve(GraphContextFactory.DEFAULT_GRAPH_SUBDIRECTORY);
System.out.println("Output Path:" + windupConfiguration.getOutputDirectory());
System.out.println();
  if (!skipReports)
    Path indexHtmlPath = windupConfiguration.getOutputDirectory().resolve("index.html").normalize().toAbsolutePath();
    System.out.println("Report created: " + indexHtmlPath + System.getProperty("line.separator")
          + "              Access it at this URL: " + indexHtmlPath.toUri());

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

Path graphPath = configuration.getOutputDirectory().resolve(GraphContextFactory.DEFAULT_GRAPH_SUBDIRECTORY);
GraphContext graphContext = this.graphContextFactory.create(graphPath, true);
configuration.setGraphContext(graphContext);
configurationModel.setOutputPath(getFileModel(context, configuration.getOutputDirectory()));
configurationModel.setOnlineMode(configuration.isOnline());
configurationModel.setExportingCSV(configuration.isExportingCSV());

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