Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
remal committed May 14, 2024
1 parent 42fb795 commit bbcce53
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ gradle-api.min-version = 6.0

#disable-compilation = true
#java-runtime.version = 8
#gradle-api.version = 8.0
#gradle-api.version = 7.2
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ private static void configureFinalizedBy(Project project) {

private static List<Object> getFinalizedBy(Task task) {
val taskExecutionDataFile = getTaskExecutionDataFile(task);
task.getLogger().quiet(
"{}: finalizedBy: taskExecutionDataFile: {}",
task,
taskExecutionDataFile
);
if (taskExecutionDataFile == null) {
return emptyList();
}
Expand All @@ -59,7 +64,13 @@ private static List<Object> getFinalizedBy(Task task) {
.map(JacocoReportBase.class::cast)
.filter(reportTask -> {
val reportExecutionDataFile = getReportExecutionDataFile(reportTask);
return reportExecutionDataFile != null && reportExecutionDataFile.equals(taskExecutionDataFile);
reportTask.getLogger().quiet(
" {}: reportExecutionDataFile: {}: {}",
reportTask,
reportExecutionDataFile,
taskExecutionDataFile.equals(reportExecutionDataFile)
);
return taskExecutionDataFile.equals(reportExecutionDataFile);
})
.collect(toList());
}
Expand All @@ -75,6 +86,11 @@ private static void configureDependsOn(Project project) {

private static List<Object> getDependsOn(JacocoReportBase reportTask) {
val reportExecutionDataFile = getReportExecutionDataFile(reportTask);
reportTask.getLogger().quiet(
"dependsOn: {}: reportExecutionDataFile: {}",
reportTask,
reportExecutionDataFile
);
if (reportExecutionDataFile == null) {
return emptyList();
}
Expand All @@ -83,7 +99,13 @@ private static List<Object> getDependsOn(JacocoReportBase reportTask) {
.filter(not(JacocoBase.class::isInstance))
.filter(task -> {
val taskExecutionDataFile = getTaskExecutionDataFile(task);
return taskExecutionDataFile != null && taskExecutionDataFile.equals(reportExecutionDataFile);
task.getLogger().quiet(
" {}: taskExecutionDataFile: {}: {}",
task,
taskExecutionDataFile,
reportExecutionDataFile.equals(taskExecutionDataFile)
);
return reportExecutionDataFile.equals(taskExecutionDataFile);
})
.collect(toList());
}
Expand Down

0 comments on commit bbcce53

Please sign in to comment.