Package org.jacoco.ant
Class AntResourcesLocator
java.lang.Object
org.jacoco.report.MultiSourceFileLocator
org.jacoco.ant.AntResourcesLocator
- All Implemented Interfaces:
ISourceFileLocator
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
FieldsModifier and TypeFieldDescriptionprivate boolean
private final String
private final AntFilesLocator
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jacoco.report.MultiSourceFileLocator
add, getSourceFile, getTabWidth
-
Field Details
-
encoding
-
filesLocator
-
empty
private boolean empty
-
-
Constructor Details
-
AntResourcesLocator
AntResourcesLocator(String encoding, int tabWidth)
-
-
Method Details
-
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
-
isEmpty
boolean isEmpty()Checks, whether resources have been added.- Returns:
true
, if no resources have been added
-