diff options
Diffstat (limited to 'OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JavaEngine.cs')
-rw-r--r-- | OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JavaEngine.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JavaEngine.cs b/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JavaEngine.cs new file mode 100644 index 0000000..28b9b33 --- /dev/null +++ b/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JavaEngine.cs | |||
@@ -0,0 +1,28 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | using OpenSim.Region.ExtensionsScriptModule; | ||
6 | |||
7 | namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine | ||
8 | { | ||
9 | public class JavaEngine : IScriptCompiler | ||
10 | { | ||
11 | public string FileExt() | ||
12 | { | ||
13 | return ".java"; | ||
14 | } | ||
15 | |||
16 | public Dictionary<string, IScript> compile(string filename) | ||
17 | { | ||
18 | JVMScript script = new JVMScript(); | ||
19 | Dictionary<string, IScript> returns = new Dictionary<string, IScript>(); | ||
20 | |||
21 | script.LoadScript(filename); | ||
22 | |||
23 | returns.Add(filename, script); | ||
24 | |||
25 | return returns; | ||
26 | } | ||
27 | } | ||
28 | } | ||