JSDOC/Packer.vala
[gnome.introspection-doc-generator] / JSDOC / Packer.vala
index eb409c5..c3a8026 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...
@@ -283,7 +283,7 @@ namespace JSDOC
                    }
                    
                  
-                   print("MERGING SOURCE");
+                   print("MERGING SOURCE\n");
                    
                    for(var i=0; i < this.files.size; i++)  {
                        var file = this.files[i];
@@ -291,6 +291,7 @@ namespace JSDOC
                        
                        
                        if ( FileUtils.test(minfile, FileTest.EXISTS)) {
+                               print("skipping source %s - does not exist\n", minfile);
                            continue;
                        }
                        string str;
@@ -312,11 +313,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);
+                       }
                     
                
                
@@ -373,7 +379,7 @@ namespace JSDOC
                        var outf = CompressWhite(new TokenStream(toks.tokens), this, this.keepWhite); // do not kill whitespace..
                
                        
-                       print(outf);
+                       print("RESULT: \n %s\n", outf);
                
                         if (outf.length > 0) {
                                FileUtils.set_contents(minfile, outf);