aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JavaEngine.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JavaEngine.cs')
-rw-r--r--OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JavaEngine.cs28
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 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5using OpenSim.Region.ExtensionsScriptModule;
6
7namespace 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}