aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JavaEngine.cs
blob: 28b9b335960c9ccee8db26429290742f69139e9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Text;

using OpenSim.Region.ExtensionsScriptModule;

namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine
{
    public class JavaEngine : IScriptCompiler
    {
        public string FileExt()
        {
            return ".java";
        }

        public Dictionary<string, IScript> compile(string filename)
        {
            JVMScript script = new JVMScript();
            Dictionary<string, IScript> returns = new Dictionary<string, IScript>();

            script.LoadScript(filename);

            returns.Add(filename, script);

            return returns;
        }
    }
}