diff options
author | Melanie | 2010-06-01 14:19:26 +0100 |
---|---|---|
committer | Melanie | 2010-06-01 14:20:39 +0100 |
commit | 5270e5426867877e84e4c148759dad8c20de76ea (patch) | |
tree | 04dbaae46b43a00e888ad1f1337dc741004850fe | |
parent | Fix prim returns I broke earlier (diff) | |
download | opensim-SC-5270e5426867877e84e4c148759dad8c20de76ea.zip opensim-SC-5270e5426867877e84e4c148759dad8c20de76ea.tar.gz opensim-SC-5270e5426867877e84e4c148759dad8c20de76ea.tar.bz2 opensim-SC-5270e5426867877e84e4c148759dad8c20de76ea.tar.xz |
Comment and remove JScript support. Mono 2.7Dev and 2.8 no longer include the
needed libraries
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs | 38 | ||||
-rw-r--r-- | prebuild.xml | 7 |
2 files changed, 19 insertions, 26 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs index f719683..cd8c67e 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs | |||
@@ -32,7 +32,7 @@ using System.Globalization; | |||
32 | using System.Reflection; | 32 | using System.Reflection; |
33 | using System.IO; | 33 | using System.IO; |
34 | using Microsoft.CSharp; | 34 | using Microsoft.CSharp; |
35 | using Microsoft.JScript; | 35 | //using Microsoft.JScript; |
36 | using Microsoft.VisualBasic; | 36 | using Microsoft.VisualBasic; |
37 | using log4net; | 37 | using log4net; |
38 | using OpenSim.Region.Framework.Interfaces; | 38 | using OpenSim.Region.Framework.Interfaces; |
@@ -82,7 +82,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
82 | 82 | ||
83 | private static CSharpCodeProvider CScodeProvider = new CSharpCodeProvider(); | 83 | private static CSharpCodeProvider CScodeProvider = new CSharpCodeProvider(); |
84 | private static VBCodeProvider VBcodeProvider = new VBCodeProvider(); | 84 | private static VBCodeProvider VBcodeProvider = new VBCodeProvider(); |
85 | private static JScriptCodeProvider JScodeProvider = new JScriptCodeProvider(); | 85 | // private static JScriptCodeProvider JScodeProvider = new JScriptCodeProvider(); |
86 | private static CSharpCodeProvider YPcodeProvider = new CSharpCodeProvider(); // YP is translated into CSharp | 86 | private static CSharpCodeProvider YPcodeProvider = new CSharpCodeProvider(); // YP is translated into CSharp |
87 | private static YP2CSConverter YP_Converter = new YP2CSConverter(); | 87 | private static YP2CSConverter YP_Converter = new YP2CSConverter(); |
88 | 88 | ||
@@ -398,9 +398,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
398 | case enumCompileType.vb: | 398 | case enumCompileType.vb: |
399 | compileScript = CreateVBCompilerScript(compileScript); | 399 | compileScript = CreateVBCompilerScript(compileScript); |
400 | break; | 400 | break; |
401 | case enumCompileType.js: | 401 | // case enumCompileType.js: |
402 | compileScript = CreateJSCompilerScript(compileScript); | 402 | // compileScript = CreateJSCompilerScript(compileScript); |
403 | break; | 403 | // break; |
404 | case enumCompileType.yp: | 404 | case enumCompileType.yp: |
405 | compileScript = CreateYPCompilerScript(compileScript); | 405 | compileScript = CreateYPCompilerScript(compileScript); |
406 | break; | 406 | break; |
@@ -423,16 +423,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
423 | } | 423 | } |
424 | } | 424 | } |
425 | 425 | ||
426 | private static string CreateJSCompilerScript(string compileScript) | 426 | // private static string CreateJSCompilerScript(string compileScript) |
427 | { | 427 | // { |
428 | compileScript = String.Empty + | 428 | // compileScript = String.Empty + |
429 | "import OpenSim.Region.ScriptEngine.Shared; import System.Collections.Generic;\r\n" + | 429 | // "import OpenSim.Region.ScriptEngine.Shared; import System.Collections.Generic;\r\n" + |
430 | "package SecondLife {\r\n" + | 430 | // "package SecondLife {\r\n" + |
431 | "class Script extends OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass { \r\n" + | 431 | // "class Script extends OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass { \r\n" + |
432 | compileScript + | 432 | // compileScript + |
433 | "} }\r\n"; | 433 | // "} }\r\n"; |
434 | return compileScript; | 434 | // return compileScript; |
435 | } | 435 | // } |
436 | 436 | ||
437 | private static string CreateCSCompilerScript(string compileScript) | 437 | private static string CreateCSCompilerScript(string compileScript) |
438 | { | 438 | { |
@@ -583,10 +583,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
583 | } | 583 | } |
584 | } while (!complete); | 584 | } while (!complete); |
585 | break; | 585 | break; |
586 | case enumCompileType.js: | 586 | // case enumCompileType.js: |
587 | results = JScodeProvider.CompileAssemblyFromSource( | 587 | // results = JScodeProvider.CompileAssemblyFromSource( |
588 | parameters, Script); | 588 | // parameters, Script); |
589 | break; | 589 | // break; |
590 | case enumCompileType.yp: | 590 | case enumCompileType.yp: |
591 | results = YPcodeProvider.CompileAssemblyFromSource( | 591 | results = YPcodeProvider.CompileAssemblyFromSource( |
592 | parameters, Script); | 592 | parameters, Script); |
diff --git a/prebuild.xml b/prebuild.xml index c0e06bf..1eb8fee 100644 --- a/prebuild.xml +++ b/prebuild.xml | |||
@@ -767,7 +767,6 @@ | |||
767 | <Reference name="OpenSim.Region.Physics.Manager"/> | 767 | <Reference name="OpenSim.Region.Physics.Manager"/> |
768 | 768 | ||
769 | <!-- For scripting in funny languages by default --> | 769 | <!-- For scripting in funny languages by default --> |
770 | <Reference name="Microsoft.JScript"/> | ||
771 | <Reference name="XMLRPC.dll"/> | 770 | <Reference name="XMLRPC.dll"/> |
772 | <Reference name="OpenSim.Framework.Communications"/> | 771 | <Reference name="OpenSim.Framework.Communications"/> |
773 | <Reference name="Nini.dll" /> | 772 | <Reference name="Nini.dll" /> |
@@ -1406,7 +1405,6 @@ | |||
1406 | <Reference name="GlynnTucker.Cache.dll"/> | 1405 | <Reference name="GlynnTucker.Cache.dll"/> |
1407 | 1406 | ||
1408 | <!-- For scripting in funny languages by default --> | 1407 | <!-- For scripting in funny languages by default --> |
1409 | <Reference name="Microsoft.JScript"/> | ||
1410 | <Reference name="XMLRPC.dll"/> | 1408 | <Reference name="XMLRPC.dll"/> |
1411 | <Reference name="OpenSim.Framework.Communications"/> | 1409 | <Reference name="OpenSim.Framework.Communications"/> |
1412 | <Reference name="Nini.dll" /> | 1410 | <Reference name="Nini.dll" /> |
@@ -1489,7 +1487,6 @@ | |||
1489 | <Reference name="Mono.Addins.dll" /> | 1487 | <Reference name="Mono.Addins.dll" /> |
1490 | 1488 | ||
1491 | <!-- For scripting in funny languages by default --> | 1489 | <!-- For scripting in funny languages by default --> |
1492 | <Reference name="Microsoft.JScript"/> | ||
1493 | <Reference name="XMLRPC.dll"/> | 1490 | <Reference name="XMLRPC.dll"/> |
1494 | <Reference name="OpenSim.Framework.Communications"/> | 1491 | <Reference name="OpenSim.Framework.Communications"/> |
1495 | <Reference name="Nini.dll" /> | 1492 | <Reference name="Nini.dll" /> |
@@ -2417,7 +2414,6 @@ | |||
2417 | 2414 | ||
2418 | <ReferencePath>../../../../../bin/</ReferencePath> | 2415 | <ReferencePath>../../../../../bin/</ReferencePath> |
2419 | <Reference name="System"/> | 2416 | <Reference name="System"/> |
2420 | <Reference name="Microsoft.JScript"/> | ||
2421 | <Reference name="OpenSim.Framework" /> | 2417 | <Reference name="OpenSim.Framework" /> |
2422 | <Reference name="OpenSim.Region.Framework" /> | 2418 | <Reference name="OpenSim.Region.Framework" /> |
2423 | <Reference name="OpenSim.Region.ScriptEngine.Shared"/> | 2419 | <Reference name="OpenSim.Region.ScriptEngine.Shared"/> |
@@ -2554,7 +2550,6 @@ | |||
2554 | <Reference name="Mono.Addins"/> | 2550 | <Reference name="Mono.Addins"/> |
2555 | 2551 | ||
2556 | <!-- For scripting in funny languages by default --> | 2552 | <!-- For scripting in funny languages by default --> |
2557 | <Reference name="Microsoft.JScript"/> | ||
2558 | <Reference name="XMLRPC.dll"/> | 2553 | <Reference name="XMLRPC.dll"/> |
2559 | <Reference name="OpenSim.Framework.Communications"/> | 2554 | <Reference name="OpenSim.Framework.Communications"/> |
2560 | <Reference name="Nini.dll" /> | 2555 | <Reference name="Nini.dll" /> |
@@ -2969,7 +2964,6 @@ | |||
2969 | <Reference name="nunit.framework.dll"/> | 2964 | <Reference name="nunit.framework.dll"/> |
2970 | 2965 | ||
2971 | <!-- For scripting in funny languages by default --> | 2966 | <!-- For scripting in funny languages by default --> |
2972 | <Reference name="Microsoft.JScript"/> | ||
2973 | <Reference name="XMLRPC.dll"/> | 2967 | <Reference name="XMLRPC.dll"/> |
2974 | <Reference name="OpenSim.Framework.Communications"/> | 2968 | <Reference name="OpenSim.Framework.Communications"/> |
2975 | <Reference name="Nini.dll" /> | 2969 | <Reference name="Nini.dll" /> |
@@ -3033,7 +3027,6 @@ | |||
3033 | <Reference name="nunit.framework.dll"/> | 3027 | <Reference name="nunit.framework.dll"/> |
3034 | 3028 | ||
3035 | <!-- For scripting in funny languages by default --> | 3029 | <!-- For scripting in funny languages by default --> |
3036 | <Reference name="Microsoft.JScript"/> | ||
3037 | <Reference name="XMLRPC.dll"/> | 3030 | <Reference name="XMLRPC.dll"/> |
3038 | <Reference name="OpenSim.Framework.Communications"/> | 3031 | <Reference name="OpenSim.Framework.Communications"/> |
3039 | <Reference name="Nini.dll" /> | 3032 | <Reference name="Nini.dll" /> |