javafx: patch command line to ensure that javafx modules come to the module path, use --add-reads (IDEA-200092)

This commit is contained in:
Anna Kozlova
2018-10-09 19:11:29 +03:00
committed by Pavel Dolgov
parent f3be03aea5
commit 3083333b56
@@ -59,7 +59,8 @@ public class JavaFxRunConfigurationExtension extends RunConfigurationExtension {
params.getModulePath().add(javaFxBase);
params.getModulePath().add(javafxGraphics);
params.getVMParametersList().addParametersString("--add-modules " + JAVAFX_BASE + "," + JAVAFX_GRAPHICS);
params.getVMParametersList().addParametersString("--add-exports " + JAVAFX_GRAPHICS + "/com.sun.javafx.application=ALL-UNNAMED");
params.getVMParametersList().addParametersString("--add-reads " + JAVAFX_BASE + "=ALL-UNNAMED");
params.getVMParametersList().addParametersString("--add-reads " + JAVAFX_GRAPHICS + "=ALL-UNNAMED");
}
}
}