org.codehaus.plexus.util.FileUtils.getDefaultExcludesAsList()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(118)

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

FileUtils.getDefaultExcludesAsList介绍

暂无

代码示例

代码示例来源:origin: diffplug/spotless

private List<File> collectFiles(FormatterFactory formatterFactory) throws MojoExecutionException {
  Set<String> configuredIncludes = formatterFactory.includes();
  Set<String> configuredExcludes = formatterFactory.excludes();
  Set<String> includes = configuredIncludes.isEmpty() ? formatterFactory.defaultIncludes() : configuredIncludes;
  Set<String> excludes = new HashSet<>(FileUtils.getDefaultExcludesAsList());
  excludes.add(withTrailingSeparator(targetDir.toString()));
  excludes.addAll(configuredExcludes);
  String includesString = String.join(",", includes);
  String excludesString = String.join(",", excludes);
  try {
    return FileUtils.getFiles(baseDir, includesString, excludesString);
  } catch (IOException e) {
    throw new MojoExecutionException("Unable to scan file tree rooted at " + baseDir, e);
  }
}

代码示例来源:origin: com.googlecode.jslint4java/jslint4java-maven-plugin

public FileLister(File sourceDirectory, List<String> includes, List<String> excludes) {
  this.sourceDirectory = sourceDirectory;
  this.includes.addAll(includes);
  this.excludes.addAll(excludes);
  this.excludes.addAll(FileUtils.getDefaultExcludesAsList());
}

代码示例来源:origin: org.apache.maven.plugins/maven-pmd-plugin

/**
 * Gets the comma separated list of effective exclude patterns.
 *
 * @return The comma separated list of effective exclude patterns, never <code>null</code>.
 */
private String getExcludes()
{
  Collection<String> patterns = new LinkedHashSet<>( FileUtils.getDefaultExcludesAsList() );
  if ( excludes != null )
  {
    patterns.addAll( excludes );
  }
  return StringUtils.join( patterns.iterator(), "," );
}

代码示例来源:origin: org.apache.maven.doxia/doxia-linkcheck

/**
 * Gets the comma separated list of effective exclude patterns.
 *
 * @return The comma separated list of effective exclude patterns, never <code>null</code>.
 */
private String getExcludedPages()
{
  LinkedList patternList = new LinkedList( FileUtils.getDefaultExcludesAsList() );
  if ( excludedPages != null )
  {
    patternList.addAll( Arrays.asList( excludedPages ) );
  }
  return StringUtils.join( patternList.iterator(), "," );
}

代码示例来源:origin: org.sonatype.tycho/maven-osgi-source-plugin

combinedExcludes.addAll( FileUtils.getDefaultExcludesAsList() );

代码示例来源:origin: maven-nar/nar-maven-plugin

for (final Object element : FileUtils.getDefaultExcludesAsList()) {
 final String exclude = (String) element;
 if (SelectorUtils.matchPath(exclude.replace('/', File.separatorChar), anAol)) {

代码示例来源:origin: reactiverse/vertx-maven-plugin

excludes.addAll(FileUtils.getDefaultExcludesAsList());

代码示例来源:origin: org.codehaus.mojo/cobertura-maven-plugin

@SuppressWarnings( "unchecked" ) String defaultExcludes = joinCludes( FileUtils.getDefaultExcludesAsList() );

相关文章