use of com.google.devtools.build.lib.actions.extra.JavaCompileInfo in project heron by twitter.
the class JavaCheckstyle method getSourceFiles.
private static String[] getSourceFiles(String extraActionFile, Predicate<CharSequence> predicate) {
ExtraActionInfo info = ExtraActionUtils.getExtraActionInfo(extraActionFile);
JavaCompileInfo jInfo = info.getExtension(JavaCompileInfo.javaCompileInfo);
Collection<String> sourceFiles = Collections2.filter(jInfo.getSourceFileList(), predicate);
return sourceFiles.toArray(new String[sourceFiles.size()]);
}
Aggregations