2 * Test the writer code...
7 public static int main () {
8 new JsRender.Lang_Class();
9 GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR | LogLevelFlags.LEVEL_CRITICAL);
10 var proj = new Project.Gtk( "/home/alan/gitlive/app.Builder.js/Builder4");
12 print(proj.toJSON(true));
14 var tf = proj.files.get("/home/alan/gitlive/app.Builder.js/Builder4/Editor.bjs");
22 var test_out =tf.toJsonString();
24 FileUtils.set_contents("/tmp/out.bjs",test_out);
25 //string[] spawn_args = {"diff", "-u", "/home/alan/gitlive/app.Builder.js/Builder4/Editor.bjs", "/tmp/out.bjs" };
28 string[] spawn_env = Environ.get ();
30 Process.spawn_sync ("/",
33 SpawnFlags.SEARCH_PATH,
38 //var tf = proj.files['/home/alan/gitlive/app.Builder/Builder4/Editor.bjs'];
39 //tf.loadItems(function() {
40 // print(JSON.stringify(tf,null,4));