1- <?xml version =" 1.0" ?>
2- <H2 >
3- <SourceCode >O2ConfigSettings.O2Version = "Package_O2_Script_v1";
1+ O2ConfigSettings.O2Version = "Package_O2_Script_v1";
42O2Setup.extractEmbededConfigZips();
53
64//var topPanel = panel.clear().add_Panel();
@@ -16,13 +14,13 @@ var dropZone = topPanel.insert_Left(200)
1614var lastScriptFile = "";
1715var compiledScript = "";
1816
19- Action< string> packageScript =
20- (scriptFile)=> {
17+ Action< string> packageScript =
18+ (scriptFile)=> {
2119 lastScriptFile = scriptFile;
2220 dropZone.green();
2321
2422 O2Thread.mtaThread(
25- ()=> {
23+ ()=> {
2624 var pathToAssemblies = "";
2725 var projectFile = "";
2826 if (scriptFile.package_Script(ref compiledScript, ref pathToAssemblies, ref projectFile).valid())
@@ -34,25 +32,23 @@ Action<string> packageScript =
3432 {
3533 var logFile = projectFile + ".log";
3634 "LogFile: {0}".error(logFile);
37- browser.set_Text(logFile.fileContents().replace("".line(), "< br > "));
35+ browser.set_Text(logFile.fileContents().replace("".line(), "<br> "));
3836 dropZone.pink();
3937 }
4038 });
4139 };
42- dropZone.parent().insert_Below(20).add_Link("Execute", ()=> compiledScript.startProcess())
43- .append_Link("Open Folder", ()=> compiledScript.directoryName().startProcess())
44- .append_Link("Edit Target", ()=> lastScriptFile.local().showInCodeEditor());
45- // .append_Link("Clear Cache", ()=> { CompileEngine.CachedCompiledAssemblies.Clear(); "Compilation Cache Cleared".info();});
40+ dropZone.parent().insert_Below(20).add_Link("Execute", ()=> compiledScript.startProcess())
41+ .append_Link("Open Folder", ()=> compiledScript.directoryName().startProcess())
42+ .append_Link("Edit Target", ()=> lastScriptFile.local().showInCodeEditor());
43+ // .append_Link("Clear Cache", ()=> { CompileEngine.CachedCompiledAssemblies.Clear(); "Compilation Cache Cleared".info();});
4644dropZone.onDrop(packageScript);
47- dropZone.onClick(()=> packageScript(lastScriptFile));
45+ dropZone.onClick(()=> packageScript(lastScriptFile));
4846
4947dropZone.add_MenuItem_with_TestScripts(packageScript);
5048
5149return packageScript;
52-
50+
51+ //using O2.XRules.Database.APIs
5352//O2File:API_MicrosoftBuild.cs
5453
5554//O2Package:ALL_SCRIPTS
56- </SourceCode >
57- <ReferencedAssemblies />
58- </H2 >
0 commit comments