From b7533169bf1e0d3e441868a0723cda803f4fb4fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Wed, 14 Sep 2022 16:26:34 -0300 Subject: [PATCH] Update pmd-dist/src/main/resources/scripts/pmd.bat Add all needed `--add-opens` for javaFX Co-authored-by: Andreas Dangel --- pmd-dist/src/main/resources/scripts/pmd.bat | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pmd-dist/src/main/resources/scripts/pmd.bat b/pmd-dist/src/main/resources/scripts/pmd.bat index e8b47ba903..ef2a6c7efc 100644 --- a/pmd-dist/src/main/resources/scripts/pmd.bat +++ b/pmd-dist/src/main/resources/scripts/pmd.bat @@ -22,7 +22,18 @@ if /I "%jvendor%" EQU "java" ( if %jver% GEQ 900 ( if %jver% LSS 1100 ( :: enable reflection - Set jreopts=--add-opens javafx.controls/javafx.scene.control.skin=ALL-UNNAMED + SETLOCAL EnableDelayedExpansion + rem java9 and java10 from oracle contain javafx as a module + rem open internal module of javafx to reflection (for our TreeViewWrapper) + set "jreopts=--add-opens javafx.controls/javafx.scene.control.skin=ALL-UNNAMED" + rem The rest here is for RichtextFX + set "jreopts=!jreopts! --add-opens javafx.graphics/javafx.scene.text=ALL-UNNAMED" + set "jreopts=!jreopts! --add-opens javafx.graphics/com.sun.javafx.scene.text=ALL-UNNAMED" + set "jreopts=!jreopts! --add-opens javafx.graphics/com.sun.javafx.text=ALL-UNNAMED" + set "jreopts=!jreopts! --add-opens javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED" + rem Warn of remaining illegal accesses + set "jreopts=!jreopts! --illegal-access=warn" + ) ) )