Package org.jacoco.ant
Class AntResourcesLocator
- java.lang.Object
-
- org.jacoco.report.MultiSourceFileLocator
-
- org.jacoco.ant.AntResourcesLocator
-
- All Implemented Interfaces:
ISourceFileLocator
class AntResourcesLocator extends MultiSourceFileLocator
Source file locator based on Ant resources. The locator supports files as well as directories. The lookup is first performed on files (matching the local file name) and afterwards on directories, by the order the directory resources have been added. The directories are considered as source folders that are searched for source files with the fully qualified name (package and local name).
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
empty
private java.lang.String
encoding
private AntFilesLocator
filesLocator
-
Constructor Summary
Constructors Constructor Description AntResourcesLocator(java.lang.String encoding, int tabWidth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
add(org.apache.tools.ant.types.Resource resource)
Adds the given file or directory resource to the locator.(package private) void
addAll(java.util.Iterator<?> iterator)
(package private) boolean
isEmpty()
Checks, whether resources have been added.-
Methods inherited from class org.jacoco.report.MultiSourceFileLocator
add, getSourceFile, getTabWidth
-
-
-
-
Field Detail
-
encoding
private final java.lang.String encoding
-
filesLocator
private final AntFilesLocator filesLocator
-
empty
private boolean empty
-
-
Method Detail
-
add
void add(org.apache.tools.ant.types.Resource resource)
Adds the given file or directory resource to the locator.- Parameters:
resource
- resource to add
-
addAll
void addAll(java.util.Iterator<?> iterator)
-
isEmpty
boolean isEmpty()
Checks, whether resources have been added.- Returns:
true
, if no resources have been added
-
-