2 * Test the writer code...
7 int main (string[] args) {
14 var app = BuilderApplication.singleton( args);
16 if (BuilderApplication.opt_debug || BuilderApplication.opt_compile_project == null) {
17 GLib.Log.set_handler(null,
18 GLib.LogLevelFlags.LEVEL_DEBUG | GLib.LogLevelFlags.LEVEL_WARNING,
20 print("%s: %s\n", dom, msg);
24 if (BuilderApplication.opt_bjs_compile != null) {
26 //BuilderApplication.compileBjs();
27 print("compile BJS comming soon");
29 GLib.Process.exit(Posix.EXIT_SUCCESS);
34 if (BuilderApplication.opt_compile_project != null) {
36 Palete.ValaSourceCompiler.buildApplication();
38 GLib.Process.exit(Posix.EXIT_SUCCESS);
43 GLib.debug("project = %s\n", BuilderApplication.opt_compile_project);
48 GtkClutter.init (ref args);
49 new JsRender.Lang_Class();
50 GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR | LogLevelFlags.LEVEL_CRITICAL);
51 Project.Project.loadAll();
54 // respond to other arguments
56 /*var proj = Project.Project.getProject("Pman.Core");
58 print("could not load test project Pman.Core");
64 var w = Xcls_MainWindow.singleton();
69 // it looks like showall after children causes segfault on ubuntu 14.4
71 w.windowstate.switchState(WindowState.State.FILES);