Search in sources :

Example 1 with JavaCompileInfo

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()]);
}
Also used : ExtraActionInfo(com.google.devtools.build.lib.actions.extra.ExtraActionInfo) JavaCompileInfo(com.google.devtools.build.lib.actions.extra.JavaCompileInfo)

Aggregations

ExtraActionInfo (com.google.devtools.build.lib.actions.extra.ExtraActionInfo)1 JavaCompileInfo (com.google.devtools.build.lib.actions.extra.JavaCompileInfo)1