[Kde-bindings] KDE/kdebindings/csharp/plasma
Arno Rehn
kde at arnorehn.de
Sat Dec 6 16:25:15 UTC 2008
SVN commit 893444 by arnorehn:
* Don't throw an Exception on compiler warnings
* Set CompilerOptions to an empty string so the nemerle compiler won't crash
* Add tiger-boo and tiger-nemerle examples that are compiled at runtime
CCMAIL: kde-bindings at kde.org
M +5 -0 ChangeLog
A examples/applets/tiger-boo (directory)
A examples/applets/tiger-boo/contents (directory)
A examples/applets/tiger-boo/contents/code (directory)
A examples/applets/tiger-boo/contents/code/main
A examples/applets/tiger-boo/metadata.desktop
A examples/applets/tiger-nemerle (directory)
A examples/applets/tiger-nemerle/contents (directory)
A examples/applets/tiger-nemerle/contents/code (directory)
A examples/applets/tiger-nemerle/contents/code/main
A examples/applets/tiger-nemerle/metadata.desktop
M +10 -6 src/PlasmaScriptengineKimono_Compiler.cs
--- trunk/KDE/kdebindings/csharp/plasma/ChangeLog #893443:893444
@@ -1,3 +1,8 @@
+2008-12-06 Arno Rehn <arno at arnorehn.de>
+* Don't throw an Exception on compiler warnings
+* Set CompilerOptions to an empty string so the nemerle compiler won't crash
+* Add tiger-boo and tiger-nemerle examples that are compiled at runtime
+
2008-12-05 Arno Rehn <arno at arnorehn.de>
* Add support for compiling sources at runtime. Supported languages for now:
C#, Boo, Nemerle, VB.NET (this one doesn't quite work yet - the compiler seems
--- trunk/KDE/kdebindings/csharp/plasma/src/PlasmaScriptengineKimono_Compiler.cs #893443:893444
@@ -182,15 +182,19 @@
param.GenerateInMemory = false;
param.OutputAssembly = mainscript + ".dll";
param.ReferencedAssemblies.AddRange(refs.ToArray());
+ param.CompilerOptions = String.Empty;
CompilerResults result = provider.CompileAssemblyFromFile(param, sources.ToArray());
- if (result.Errors.Count != 0) {
- foreach (CompilerError error in result.Errors)
- Console.WriteLine(error);
+ bool error = false;
+ foreach (CompilerError err in result.Errors) {
+ if (err.IsWarning == false) error = true;
+ Console.WriteLine(err);
+ }
+ if (!error) {
+ Console.WriteLine("Compilation successful!");
+ WriteHash();
+ } else {
throw new Exception("An error occurred during compilation");
return null;
- } else {
- Console.WriteLine("Compilation successful!");
- WriteHash();
}
return Assembly.LoadFile(mainscript + ".dll");
}
More information about the Kde-bindings
mailing list