本文整理了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
暂无
代码示例来源: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 )
内容来源于网络,如有侵权,请联系作者删除!