29 lines
651 B
C#
29 lines
651 B
C#
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;
|
|
}
|
|
}
|
|
}
|