gpt4 book ai didi

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

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

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

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);
}

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