X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FPacker.vala;h=3e2005fffd9c49efdf2456f6150065a9a3b1cbbc;hb=7674a38fce9ccceac1966ee913c05bb350ddf9e8;hp=4a3a3e1a9288ec2fb94dd599aacabb87975e57db;hpb=816dd965e109047f2bd0498743ad273f479b8ade;p=gnome.introspection-doc-generator diff --git a/JSDOC/Packer.vala b/JSDOC/Packer.vala index 4a3a3e1..3e2005f 100644 --- a/JSDOC/Packer.vala +++ b/JSDOC/Packer.vala @@ -96,7 +96,7 @@ namespace JSDOC * usefull for debugging compressed files. */ - public bool keepWhite = true; + public bool keepWhite = false; // list of files to compile... @@ -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); @@ -312,11 +312,16 @@ namespace JSDOC } } - print("Output file: " + this.target); + if (this.target.length > 0 ) { + print("Output file: " + this.target); + } if (this.targetDebug.length > 0) { - print("Output debug file: " + this.targetDebug); - } - + print("Output debug file: %s\n" , this.targetDebug); + } + + if (this.outstr.length > 0 ) { + print(this.outstr); + } @@ -356,7 +361,7 @@ namespace JSDOC //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;// @@ -373,12 +378,13 @@ 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;