Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
8238080: FXMLLoader: if script engines implement javax.script.Compila…
…ble compile scripts Reviewed-by: kcr, aghaisas
- Loading branch information
Showing
with
2,551 additions
and 30 deletions.
- +4 −2 build.gradle
- +21 −14 modules/javafx.fxml/src/main/docs/javafx/fxml/doc-files/introduction_to_fxml.html
- +95 −13 modules/javafx.fxml/src/main/java/javafx/fxml/FXMLLoader.java
- +24 −0 tests/system/src/test/java/test/launchertest/ModuleLauncherTest.java
- +0 −1 tests/system/src/testscriptapp1/resources/mymod/META-INF/services/javax.script.ScriptEngineFactory
- +34 −0 tests/system/src/testscriptapp2/java/mymod/module-info.java
- +37 −0 tests/system/src/testscriptapp2/java/mymod/myapp2/Constants.java
- +288 −0 tests/system/src/testscriptapp2/java/mymod/myapp2/FXMLScriptDeployment2Compile_Fail_Compilation.java
- +288 −0 tests/system/src/testscriptapp2/java/mymod/myapp2/FXMLScriptDeployment2Compile_Off.java
- +290 −0 tests/system/src/testscriptapp2/java/mymod/myapp2/FXMLScriptDeployment2Compile_Off_On.java
- +293 −0 tests/system/src/testscriptapp2/java/mymod/myapp2/FXMLScriptDeployment2Compile_On.java
- +291 −0 tests/system/src/testscriptapp2/java/mymod/myapp2/FXMLScriptDeployment2Compile_On_Off.java
- +114 −0 tests/system/src/testscriptapp2/java/mymod/myapp2/Util.java
- +77 −0 tests/system/src/testscriptapp2/java/mymod/pseudoScriptEngineCompilable/InvocationInfos.java
- +58 −0 tests/system/src/testscriptapp2/java/mymod/pseudoScriptEngineCompilable/RgfPseudoCompiledScript.java
- +141 −0 ...m/src/testscriptapp2/java/mymod/pseudoScriptEngineCompilable/RgfPseudoScriptEngineCompilable.java
- +140 −0 ...estscriptapp2/java/mymod/pseudoScriptEngineCompilable/RgfPseudoScriptEngineCompilableFactory.java
- +1 −0 tests/system/src/testscriptapp2/resources/mymod/META-INF/services/javax.script.ScriptEngineFactory
- +1 −0 tests/system/src/testscriptapp2/resources/mymod/myapp2/demo_02_bottomscript.sqtmc
- +1 −0 tests/system/src/testscriptapp2/resources/mymod/myapp2/demo_02_middlescript.sqtmc
- +70 −0 tests/system/src/testscriptapp2/resources/mymod/myapp2/demo_02_off.fxml
- +69 −0 tests/system/src/testscriptapp2/resources/mymod/myapp2/demo_02_off_on.fxml
- +69 −0 tests/system/src/testscriptapp2/resources/mymod/myapp2/demo_02_on.fxml
- +69 −0 tests/system/src/testscriptapp2/resources/mymod/myapp2/demo_02_on_off.fxml
- +1 −0 tests/system/src/testscriptapp2/resources/mymod/myapp2/demo_02_topscript.sqtmc
- +2 −0 tests/system/src/testscriptapp2/resources/mymod/myapp2/demo_03_bottomscript.sqtmc
- +69 −0 tests/system/src/testscriptapp2/resources/mymod/myapp2/demo_03_fail_compile.fxml
- +2 −0 tests/system/src/testscriptapp2/resources/mymod/myapp2/demo_03_middlescript.sqtmc
- +2 −0 tests/system/src/testscriptapp2/resources/mymod/myapp2/demo_03_topscript.sqtmc
@@ -1,2 +1 @@ | ||
pseudoScriptEngine.RgfPseudoScriptEngineFactory | ||
|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 only, as | ||
* published by the Free Software Foundation. Oracle designates this | ||
* particular file as subject to the "Classpath" exception as provided | ||
* by Oracle in the LICENSE file that accompanied this code. | ||
* | ||
* This code is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* version 2 for more details (a copy is included in the LICENSE file that | ||
* accompanied this code). | ||
* | ||
* You should have received a copy of the GNU General Public License version | ||
* 2 along with this work; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
* or visit www.oracle.com if you need additional information or have any | ||
* questions. | ||
*/ | ||
|
||
module mymod { | ||
requires javafx.controls; | ||
requires javafx.fxml; | ||
|
||
requires java.scripting; | ||
provides javax.script.ScriptEngineFactory with pseudoScriptEngineCompilable.RgfPseudoScriptEngineCompilableFactory; | ||
exports pseudoScriptEngineCompilable; | ||
exports myapp2; | ||
} |
Oops, something went wrong.