aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/scripting/Engines/JVMEngine/JavaEngine.cs
blob: 58cdf49732916dee73250740d85cb50d1da89ef7 (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
29
using System;
using System.Collections.Generic;
using System.Text;

using OpenSim.Region.Scripting;
using OpenSim.Region.Scripting.EmbeddedJVM;

namespace OpenSim.Region.Scripting
{
    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;
        }
    }
}