本文整理了Java中org.jboss.windup.exec.configuration.WindupConfiguration.getOptionValue()
方法的一些代码示例,展示了WindupConfiguration.getOptionValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindupConfiguration.getOptionValue()
方法的具体详情如下:
包路径:org.jboss.windup.exec.configuration.WindupConfiguration
类名称:WindupConfiguration
方法名:getOptionValue
[英]Returns the configuration value with the specified name.
[中]返回具有指定名称的配置值。
代码示例来源:origin: org.jboss.windup.exec/windup-exec-api
/**
* Contains the path to the input file (or directory) to be processed
*/
public Collection<Path> getInputPaths()
{
Collection<Path> inputPaths = getOptionValue(InputPathOption.NAME);
return inputPaths;
}
代码示例来源:origin: org.jboss.windup.exec/windup-exec-api
/**
* Returns true if Windup is operating in {@link ExportCSVOption} == true.
*/
public boolean isExportingCSV()
{
Boolean export = getOptionValue(ExportCSVOption.NAME);
return export == null ? false : export;
}
}
代码示例来源:origin: windup/windup
/**
* Returns true if Windup is operating in {@link ExportCSVOption} == true.
*/
public boolean isExportingCSV()
{
Boolean export = getOptionValue(ExportCSVOption.NAME);
return export == null ? false : export;
}
}
代码示例来源:origin: org.jboss.windup.exec/windup-exec-api
/**
* Returns true if Windup is operating in {@link OnlineModeOption} == true. (with respect to an internet connection)
*/
public boolean isOnline()
{
Boolean online = getOptionValue(OnlineModeOption.NAME);
return online == null ? DEFAULT_ONLINE : online;
}
代码示例来源:origin: windup/windup
/**
* Contains the path to the input file (or directory) to be processed
*/
public Collection<Path> getInputPaths()
{
Collection<Path> inputPaths = getOptionValue(InputPathOption.NAME);
return inputPaths;
}
代码示例来源:origin: windup/windup
/**
* Returns true if Windup is operating in {@link OnlineModeOption} == true. (with respect to an internet connection)
*/
public boolean isOnline()
{
Boolean online = getOptionValue(OnlineModeOption.NAME);
return online == null ? DEFAULT_ONLINE : online;
}
代码示例来源:origin: org.jboss.windup.exec/windup-exec-api
public List<String> getInputApplicationNames()
{
return getOptionValue(InputApplicationName.NAME);
}
代码示例来源:origin: windup/windup
public List<String> getInputApplicationNames()
{
return getOptionValue(InputApplicationName.NAME);
}
代码示例来源:origin: org.jboss.windup.exec/windup-exec-api
/**
* Contains the directory to put the output to (migration report, temporary files, exported graph data...).
*/
public Path getOutputDirectory()
{
File file = getOptionValue(OutputPathOption.NAME);
return file == null ? null : file.toPath();
}
代码示例来源:origin: windup/windup
/**
* Contains the directory to put the output to (migration report, temporary files, exported graph data...).
*/
public Path getOutputDirectory()
{
File file = getOptionValue(OutputPathOption.NAME);
return file == null ? null : file.toPath();
}
代码示例来源:origin: org.jboss.windup.exec/windup-exec-api
/**
* Contains a default list of {@link Path}s with directories/files that contains files having regexes of file names to be ignored.
*/
public List<Path> getDefaultUserIgnoreDirectories()
{
List<Path> paths = getOptionValue(DEFAULT_USER_IGNORE_DIRECTORIES_OPTION);
if (paths == null)
{
return Collections.emptyList();
}
return Collections.unmodifiableList(paths);
}
代码示例来源:origin: windup/windup
/**
* Contains a default list of {@link Path}s with directories/files that contains files having regexes of file names to be ignored.
*/
public List<Path> getDefaultUserIgnoreDirectories()
{
List<Path> paths = getOptionValue(DEFAULT_USER_IGNORE_DIRECTORIES_OPTION);
if (paths == null)
{
return Collections.emptyList();
}
return Collections.unmodifiableList(paths);
}
代码示例来源:origin: org.jboss.windup.exec/windup-exec-api
/**
* Contains a list of {@link Path}s with directories that contains user provided rules.
*/
public List<Path> getDefaultUserRulesDirectories()
{
List<Path> paths = getOptionValue(DEFAULT_USER_RULES_DIRECTORIES_OPTION);
if (paths == null)
{
return Collections.emptyList();
}
return Collections.unmodifiableList(paths);
}
代码示例来源:origin: windup/windup
/**
* Contains a list of {@link Path}s with directories that contains user provided rules.
*/
public List<Path> getDefaultUserRulesDirectories()
{
List<Path> paths = getOptionValue(DEFAULT_USER_RULES_DIRECTORIES_OPTION);
if (paths == null)
{
return Collections.emptyList();
}
return Collections.unmodifiableList(paths);
}
代码示例来源:origin: org.jboss.windup.exec/windup-exec-api
public WindupConfiguration addInputApplicationName(String name)
{
List<String> inputApplicationNames = getOptionValue(InputApplicationName.NAME);
if (inputApplicationNames == null)
{
inputApplicationNames = new ArrayList<>();
setOptionValue(InputApplicationName.NAME, inputApplicationNames);
}
inputApplicationNames.add(name);
return this;
}
代码示例来源:origin: windup/windup
public WindupConfiguration addInputApplicationName(String name)
{
List<String> inputApplicationNames = getOptionValue(InputApplicationName.NAME);
if (inputApplicationNames == null)
{
inputApplicationNames = new ArrayList<>();
setOptionValue(InputApplicationName.NAME, inputApplicationNames);
}
inputApplicationNames.add(name);
return this;
}
代码示例来源:origin: org.jboss.windup.exec/windup-exec-api
/**
* Contains the path to the input file (or directory) to be processed
*/
public WindupConfiguration addInputPath(Path inputPath)
{
Set<Path> inputPaths = getOptionValue(InputPathOption.NAME);
if (inputPaths == null)
{
inputPaths = new LinkedHashSet<>();
setOptionValue(InputPathOption.NAME, inputPaths);
}
inputPaths.add(inputPath);
return this;
}
代码示例来源:origin: windup/windup
/**
* Contains the path to the input file (or directory) to be processed
*/
public WindupConfiguration addInputPath(Path inputPath)
{
Set<Path> inputPaths = getOptionValue(InputPathOption.NAME);
if (inputPaths == null)
{
inputPaths = new LinkedHashSet<>();
setOptionValue(InputPathOption.NAME, inputPaths);
}
inputPaths.add(inputPath);
return this;
}
代码示例来源:origin: org.jboss.windup/windup-bootstrap
/**
* Removes the .* suffix from the include and exclude packages input.
*/
private void normalizePackagePrefixes(WindupConfiguration windupConfiguration)
{
List<String> includePackages = windupConfiguration.getOptionValue(ScanPackagesOption.NAME);
includePackages = normalizePackagePrefixes(includePackages);
windupConfiguration.setOptionValue(ScanPackagesOption.NAME, includePackages);
List<String> excludePackages = windupConfiguration.getOptionValue(ExcludePackagesOption.NAME);
excludePackages = normalizePackagePrefixes(excludePackages);
windupConfiguration.setOptionValue(ExcludePackagesOption.NAME, excludePackages);
}
代码示例来源:origin: windup/windup
/**
* Removes the .* suffix from the include and exclude packages input.
*/
private void normalizePackagePrefixes(WindupConfiguration windupConfiguration)
{
List<String> includePackages = windupConfiguration.getOptionValue(ScanPackagesOption.NAME);
includePackages = normalizePackagePrefixes(includePackages);
windupConfiguration.setOptionValue(ScanPackagesOption.NAME, includePackages);
List<String> excludePackages = windupConfiguration.getOptionValue(ExcludePackagesOption.NAME);
excludePackages = normalizePackagePrefixes(excludePackages);
windupConfiguration.setOptionValue(ExcludePackagesOption.NAME, excludePackages);
}
内容来源于网络,如有侵权,请联系作者删除!