org.apache.maven.shared.utils.io.FileUtils.fileReadArray()方法的使用及代码示例

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

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

FileUtils.fileReadArray介绍

暂无

代码示例

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

private void addDockerIncludes(DefaultFileSet fileSet) throws IOException {
  File directory = fileSet.getDirectory();
  File dockerInclude = new File(directory, DOCKER_INCLUDE);
  if (dockerInclude.exists()) {
    ArrayList<String> includes = new ArrayList<>(Arrays.asList(FileUtils.fileReadArray(dockerInclude)));
    fileSet.setIncludes(includes.toArray(new String[0]));
  }
}

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

private void addDockerExcludes(DefaultFileSet fileSet, MojoParameters params) throws IOException {
  File directory = fileSet.getDirectory();
  List<String> excludes = new ArrayList<>();
  // Output directory will be always excluded
  excludes.add(params.getOutputDirectory() + "/**");
  for (String file : new String[] { DOCKER_EXCLUDE, DOCKER_IGNORE } ) {
    File dockerIgnore = new File(directory, file);
    if (dockerIgnore.exists()) {
      excludes.addAll(Arrays.asList(FileUtils.fileReadArray(dockerIgnore)));
      excludes.add(DOCKER_IGNORE);
    }
  }
  fileSet.setExcludes(excludes.toArray(new String[0]));
}

代码示例来源:origin: org.jolokia/docker-maven-plugin

private void addDockerIgnoreIfPresent(DefaultFileSet fileSet) throws IOException {
  File directory = fileSet.getDirectory();
  File dockerIgnore = new File(directory, DOCKER_IGNORE);
  if (dockerIgnore.exists()) {
    ArrayList<String> excludes = new ArrayList<>(Arrays.asList(FileUtils.fileReadArray(dockerIgnore)));
    excludes.add(DOCKER_IGNORE);
    fileSet.setExcludes(excludes.toArray(new String[excludes.size()]));
  }
}

代码示例来源:origin: org.apache.maven.shared/maven-shared-incremental

oldInputFiles = FileUtils.fileReadArray( mojoConfigFile );

代码示例来源:origin: org.apache.maven.shared/maven-shared-incremental

oldInputFiles = FileUtils.fileReadArray( mojoConfigFile );

代码示例来源:origin: org.apache.maven.shared/maven-shared-incremental

oldFiles = FileUtils.fileReadArray( mojoConfigFile );
for ( String oldFileName : oldFiles )

相关文章