gpt4 book ai didi

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

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

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

WindupConfiguration.setOptionValue介绍

[英]Sets a configuration option to the specified value.
[中]将配置选项设置为指定值。

代码示例

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

/**
 * Set Windup to export CSV file containing the migration information (classifications, hints).
 */
public WindupConfiguration setExportingCSV(boolean export)
{
  setOptionValue(ExportCSVOption.NAME, export);
  return this;
}

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

/**
 * Set Windup to run online or offline (with respect to an internet connection).
 */
public WindupConfiguration setOnline(boolean online)
{
  setOptionValue(OnlineModeOption.NAME, online);
  return this;
}

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

/**
 * Set Windup to export CSV file containing the migration information (classifications, hints).
 */
public WindupConfiguration setExportingCSV(boolean export)
{
  setOptionValue(ExportCSVOption.NAME, export);
  return this;
}

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

/**
 * Set Windup to run online or offline (with respect to an internet connection).
 */
public WindupConfiguration setOnline(boolean online)
{
  setOptionValue(OnlineModeOption.NAME, online);
  return this;
}

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

/**
 * Contains the directory to put the output to (migration report, temporary files, exported graph data...).
 */
public WindupConfiguration setOutputDirectory(Path outputDirectory)
{
  setOptionValue(OutputPathOption.NAME, outputDirectory.toFile());
  return this;
}

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

/**
 * Contains the directory to put the output to (migration report, temporary files, exported graph data...).
 */
public WindupConfiguration setOutputDirectory(Path outputDirectory)
{
  setOptionValue(OutputPathOption.NAME, outputDirectory.toFile());
  return this;
}

代码示例来源: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: 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.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: 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);
}

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

/**
 * Adds a path to the list of default {@link Path}s with directories/files that contain files with regexes of file names to be ignored.
 *
 * This method does guard against duplicate directories.
 */
public WindupConfiguration addDefaultUserIgnorePath(Path path)
{
  List<Path> paths = getOptionValue(DEFAULT_USER_IGNORE_DIRECTORIES_OPTION);
  if (paths == null)
  {
    paths = new ArrayList<>();
    setOptionValue(DEFAULT_USER_IGNORE_DIRECTORIES_OPTION, paths);
  }
  File userSpecifiedIgnorePath = getOptionValue(UserIgnorePathOption.NAME);
  if (userSpecifiedIgnorePath != null && userSpecifiedIgnorePath.toPath().equals(path))
  {
    return this;
  }
  for (Path existingPath : paths)
  {
    if (existingPath.equals(path))
    {
      return this;
    }
  }
  paths.add(path);
  return this;
}

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

/**
 * Adds a path to the list of default {@link Path}s with directories/files that contain files with regexes of file names to be ignored.
 *
 * This method does guard against duplicate directories.
 */
public WindupConfiguration addDefaultUserIgnorePath(Path path)
{
  List<Path> paths = getOptionValue(DEFAULT_USER_IGNORE_DIRECTORIES_OPTION);
  if (paths == null)
  {
    paths = new ArrayList<>();
    setOptionValue(DEFAULT_USER_IGNORE_DIRECTORIES_OPTION, paths);
  }
  File userSpecifiedIgnorePath = getOptionValue(UserIgnorePathOption.NAME);
  if (userSpecifiedIgnorePath != null && userSpecifiedIgnorePath.toPath().equals(path))
  {
    return this;
  }
  for (Path existingPath : paths)
  {
    if (existingPath.equals(path))
    {
      return this;
    }
  }
  paths.add(path);
  return this;
}

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

setOptionValue(DEFAULT_USER_RULES_DIRECTORIES_OPTION, paths);

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

setOptionValue(DEFAULT_USER_RULES_DIRECTORIES_OPTION, paths);

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

windupConfiguration.setOptionValue(ScanPackagesOption.NAME, Lists.toList(this.includePackagePrefixSet));
windupConfiguration.setOptionValue(ExcludePackagesOption.NAME, Lists.toList(this.excludePackagePrefixSet));
  windupConfiguration.setOptionValue(option.getKey(), option.getValue());

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

windupConfiguration.setOptionValue(ScanPackagesOption.NAME, Lists.toList(this.includePackagePrefixSet));
windupConfiguration.setOptionValue(ExcludePackagesOption.NAME, Lists.toList(this.excludePackagePrefixSet));
  windupConfiguration.setOptionValue(option.getKey(), option.getValue());

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

config.setOptionValue(SourceOption.NAME, sources);
targets = (targets == null) ? null : targets.stream().map(transformTechFunction).collect(Collectors.toSet());
config.setOptionValue(TargetOption.NAME, targets);

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

String name = option.getName();
Object value = getValueForInput(option, entry.getValue());
windupConfiguration.setOptionValue(name, value);

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