Skip to content

Commit

Permalink
Merge pull request #33756 from famod/jacoco-pom
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Jun 1, 2023
2 parents c36c437 + b41e895 commit dca680b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ public byte[] apply(String className, byte[] bytes) {
private void addProjectModule(ResolvedDependency module, JacocoConfig config, ReportInfo info, String includes,
String excludes, Set<String> classes, Set<String> sources) throws Exception {
info.savedData.add(new File(module.getWorkspaceModule().getBuildDir(), config.dataFile).getAbsolutePath());
if (module.getSources() == null) {
return;
}
for (SourceDir src : module.getSources().getSourceDirs()) {
for (Path p : src.getSourceTree().getRoots()) {
sources.add(p.toAbsolutePath().toString());
Expand Down

0 comments on commit dca680b

Please sign in to comment.