Merge pull request #4256 from pmd/doc-fix-use-version
[doc] Fix doc showing deprecated CLI switches
This commit is contained in:
@ -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`.
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user