Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
#!/bin/bash
cat ./target/pmd.xml || echo "No PMD analytics generated"

...

When Using Gradle PMD

The Gradle PMD plugin doesn’t support printing the XML into the logs. Instead print the generated ./build/reports/pmd/main.xml file into the build log by a final task:

...