File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
plugin/src/main/kotlin/trplugins/menu/module/internal/script/js Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 11package trplugins.menu.module.internal.script.js
22
33import com.google.common.collect.Maps
4+ import taboolib.common.env.RuntimeDependencies
5+ import taboolib.common.env.RuntimeDependency
46import taboolib.common5.compileJS
57import trplugins.menu.util.EvalResult
68import javax.script.CompiledScript
79import javax.script.SimpleScriptContext
810
11+ @RuntimeDependencies(
12+ RuntimeDependency (
13+ " !org.ow2.asm:asm:9.7.1" ,
14+ test = " !jdk.nashorn.api.scripting.NashornScriptEngineFactory"
15+ ),
16+ RuntimeDependency (
17+ " !org.ow2.asm:asm-commons:9.7.1" ,
18+ test = " !jdk.nashorn.api.scripting.NashornScriptEngineFactory"
19+ ),
20+ RuntimeDependency (
21+ " !org.ow2.asm:asm-tree:9.7.1" ,
22+ test = " !jdk.nashorn.api.scripting.NashornScriptEngineFactory"
23+ ),
24+ RuntimeDependency (
25+ " !org.ow2.asm:asm-util:9.7.1" ,
26+ test = " !jdk.nashorn.api.scripting.NashornScriptEngineFactory"
27+ ),
28+ RuntimeDependency (
29+ " !org.ow2.asm:asm-analysis:9.7.1" ,
30+ test = " !jdk.nashorn.api.scripting.NashornScriptEngineFactory"
31+ )
32+ )
33+
934object NashornAgent {
1035 private val compiledScripts = Maps .newConcurrentMap<String , CompiledScript >();
1136 fun preCompile (script : String ): CompiledScript {
You can’t perform that action at this time.
0 commit comments