Merge pull request #4256 from pmd/doc-fix-use-version

[doc] Fix doc showing deprecated CLI switches
This commit is contained in:
Juan Martín Sotuyo Dodero
2022-12-07 10:37:27 -03:00
committed by GitHub

View File

@ -35,6 +35,10 @@ In order to analyze a project with PMD that uses preview language features, you'
it via the environment variable `PMD_JAVA_OPTS` and select the new language version, e.g. `19-preview`:
export PMD_JAVA_OPTS=--enable-preview
./run.sh pmd -language java -version 19-preview ...
./run.sh pmd --use-version java-19-preview ...
Note: we only support preview language features for the latest two java versions.
Note: `--use-version` is only supported since PMD 6.52.0. Older versions of PMD use two CLI options that have to be specified together: `-language java -version 19-preview`.