Support windows

This commit is contained in:
Clément Fournier
2018-04-26 13:48:15 +02:00
parent dcf1a94cf8
commit 6e1c2482f8

View File

@ -3,4 +3,16 @@ set TOPDIR=%~dp0..
set OPTS=
set MAIN_CLASS=net.sourceforge.pmd.util.fxdesigner.Designer
java -classpath "%TOPDIR%\lib\*" %OPTS% %MAIN_CLASS% %*
:: sets the jver variable to the java version, eg 901 for 9.0.1+x or 180 for 1.8.0_171-b11
for /f tokens^=2-4^ delims^=.-_+^" %%j in ('java -fullversion 2^>^&1') do set /A jver="%%j%%k%%l"
if "%jver%" GEQ "900" (
:: enable reflection
Set jreopts=--add-opens javafx.controls/javafx.scene.control.skin=ALL-UNNAMED
) else (
Set jreopts=
)
java %jreopts% -classpath "%TOPDIR%\lib\*" %OPTS% %MAIN_CLASS% %*