Skip to content

Commit

Permalink
Adds handling of undefined sourceDirs var for jacoco.ant.ccenabler
Browse files Browse the repository at this point in the history
  • Loading branch information
ataverascrespo committed Jun 26, 2024
1 parent 7f53c26 commit 4bff851
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class JacocoAntCodeCoverageEnabler extends cc.JacocoCodeCoverageEnabler {

protected getSourceFilter(): string {
let srcData = "";
let srcDirs = this.sourceDirs === null ? "" : this.sourceDirs;
let srcDirs = util.isNullOrWhitespace(this.sourceDirs) ? "" : this.sourceDirs;
srcDirs.split(",").forEach(dir => {
if (!util.isNullOrWhitespace(dir)) {
srcData += `<fileset dir="${dir}"/>`;
Expand Down

0 comments on commit 4bff851

Please sign in to comment.