X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FPacker.vala;h=e4a54b89592d2d2f12b3c868d98fb26be9ac1a74;hp=745e596472950724519a84a4598663f40a6731ee;hb=bccc3930f07108d67ad61472c91e9ee2bf96af39;hpb=fcc1c6c4b32e66d764f72878701fbd28ee3cc3b7 diff --git a/JSDOC/Packer.vala b/JSDOC/Packer.vala index 745e596..e4a54b8 100644 --- a/JSDOC/Packer.vala +++ b/JSDOC/Packer.vala @@ -251,7 +251,7 @@ namespace JSDOC // this might happen if tmpDir is set .. - if (true && FileUtils.test (minfile, FileTest.EXISTS)) { + if (false && FileUtils.test (minfile, FileTest.EXISTS)) { var otv = File.new_for_path(file).query_info (FileAttribute.TIME_MODIFIED, 0).get_modification_time(); var mtv = File.new_for_path(minfile).query_info (FileAttribute.TIME_MODIFIED, 0).get_modification_time(); @@ -268,7 +268,7 @@ namespace JSDOC } - print("COMPRESSING "); + print("COMPRESSING to %s\n", minfile); //var codeComp = pack(str, 10, 0, 0); if (FileUtils.test (minfile, FileTest.EXISTS)) { FileUtils.remove(minfile); @@ -355,6 +355,9 @@ namespace JSDOC //var ts = new TokenStream(toks); //print(JSON.stringify(toks, null,4 )); Seed.quit(); var ts = new Collapse(toks.tokens); + + //ts.dumpAll(""); print("Done collaps"); Process.exit(1); + // print(JSON.stringify(ts.tokens, null,4 )); Seed.quit(); //return;// var sp = new ScopeParser(ts); @@ -369,13 +372,14 @@ namespace JSDOC var outf = CompressWhite(new TokenStream(toks.tokens), this, this.keepWhite); // do not kill whitespace.. - - + + print("RESULT: \n %s\n", outf); if (outf.length > 0) { FileUtils.set_contents(minfile, outf); - } + } + return outf;