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 Jul 14, 2024
1 parent 3d9a0fb commit 1ab166e
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 1ab166e

Please sign in to comment.