Package org.jacoco.ant
Class AntFilesLocator
java.lang.Object
org.jacoco.report.InputStreamSourceFileLocator
org.jacoco.ant.AntFilesLocator
- All Implemented Interfaces:
ISourceFileLocator
Source locator based on Ant file resources.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
add
(org.apache.tools.ant.types.Resource file) Adds the given file resource as a potential source file.protected InputStream
getSourceStream
(String path) Tries to locate the given source file and opens its binary content.Methods inherited from class org.jacoco.report.InputStreamSourceFileLocator
getSourceFile, getTabWidth
-
Field Details
-
resources
-
-
Constructor Details
-
AntFilesLocator
-
-
Method Details
-
add
void add(org.apache.tools.ant.types.Resource file) Adds the given file resource as a potential source file.- Parameters:
file
- file resource to add
-
getSourceStream
Description copied from class:InputStreamSourceFileLocator
Tries to locate the given source file and opens its binary content.- Specified by:
getSourceStream
in classInputStreamSourceFileLocator
- Parameters:
path
- local path to the resource- Returns:
- stream if the file could be located,
null
otherwise - Throws:
IOException
- in case of problems while opening the stream
-