本文整理了Java中org.jboss.windup.exec.configuration.WindupConfiguration.getInputPaths()
方法的一些代码示例,展示了WindupConfiguration.getInputPaths()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindupConfiguration.getInputPaths()
方法的具体详情如下:
包路径:org.jboss.windup.exec.configuration.WindupConfiguration
类名称: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()
+ "!");
内容来源于网络,如有侵权,请联系作者删除!