Search in sources :

Example 1 with MultiSourceFileLocator

use of org.jacoco.report.MultiSourceFileLocator in project buck by facebook.

the class ReportGenerator method createSourceFileLocator.

private ISourceFileLocator createSourceFileLocator() {
    final MultiSourceFileLocator result = new MultiSourceFileLocator(TAB_WIDTH);
    String[] sourceDirectoryPaths = sourcesPath.split(":");
    for (String sourceDirectoryPath : sourceDirectoryPaths) {
        File sourceDirectory = new File(sourceDirectoryPath);
        result.add(new DirectorySourceFileLocator(sourceDirectory, "utf-8", TAB_WIDTH));
    }
    return result;
}
Also used : MultiSourceFileLocator(org.jacoco.report.MultiSourceFileLocator) DirectorySourceFileLocator(org.jacoco.report.DirectorySourceFileLocator) File(java.io.File)

Aggregations

File (java.io.File)1 DirectorySourceFileLocator (org.jacoco.report.DirectorySourceFileLocator)1 MultiSourceFileLocator (org.jacoco.report.MultiSourceFileLocator)1