diff --git a/java/jacoco.go b/java/jacoco.go index 9162161d3..e11c2ce69 100644 --- a/java/jacoco.go +++ b/java/jacoco.go @@ -94,7 +94,7 @@ func jacocoFiltersToZipCommand(includes, excludes []string) string { if len(includes) > 0 { specs += strings.Join(includes, " ") } else { - specs += "**/*.class" + specs += "'**/*.class'" } return specs } diff --git a/java/jacoco_test.go b/java/jacoco_test.go index 91f05535a..1882908ca 100644 --- a/java/jacoco_test.go +++ b/java/jacoco_test.go @@ -74,7 +74,7 @@ func TestJacocoFiltersToZipCommand(t *testing.T) { { name: "implicit wildcard", includes: []string{}, - out: "**/*.class", + out: "'**/*.class'", }, { name: "only include",