Skip to content

Commit caf9219

Browse files
add PMD java runtime fallback
1 parent 658fae8 commit caf9219

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tools/pmdRunner.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ func RunPmd(repositoryToAnalyseDirectory string, pmdBinary string, pathsToCheck
119119
"expectedPath": javaBinary,
120120
"error": err,
121121
})
122-
return fmt.Errorf("java binary not found at %s: %w", javaBinary, err)
122+
123+
// This fallback going to be removed in the future https://codacy.atlassian.net/browse/PLUTO-1421
124+
fmt.Printf("⚠️ Warning: Java binary not found at %s: %v\n", javaBinary, err)
125+
fmt.Println("⚠️ Trying to continue with the default Java runtime")
123126
}
124127

125128
// Get current PATH

0 commit comments

Comments
 (0)