JSDOC/Packer.vala
[gnome.introspection-doc-generator] / JSDOC / Packer.vala
index b5a2085..883f0b9 100644 (file)
@@ -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);
@@ -314,9 +314,12 @@ namespace JSDOC
                    }
                    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,10 +359,7 @@ namespace JSDOC
                        //print(JSON.stringify(toks, null,4 )); Seed.quit();
                        var ts = new Collapse(toks.tokens);
                        
-                       ts.dumpAll();
-                       
-                       print("Done collaps");
-                       GLib.Process.exit(1);
+                       //ts.dumpAll("");                       print("Done collaps"); Process.exit(1);
                        
                   // print(JSON.stringify(ts.tokens, null,4 )); Seed.quit();
                        //return;//
@@ -376,12 +376,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;