JSDOC/Packer.vala
authorAlan Knowles <alan@roojs.com>
Wed, 28 Oct 2015 09:57:07 +0000 (17:57 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 28 Oct 2015 09:57:07 +0000 (17:57 +0800)
JSDOC/Packer.vala

index 49c6ac2..e0c6132 100644 (file)
@@ -117,12 +117,16 @@ namespace JSDOC
                                this.files.add(f); //?? easier way?
                        }
                }
+               FileOutputStream targetStream;
+               FileOutputStream targetDebugStream;
                
                public void pack()
                {
                    if (!this.files) {
                                throw new Packer.ArgumentError("No Files loaded before pack() called");
                        }
+                       
+                       
                        this.packAll();
                }
                
@@ -172,14 +176,14 @@ namespace JSDOC
                        
                    }
                }
-    
+               
     
                private void packAll()  // do the packing (run from constructor)
                {
                    
                    //this.transOrigFile= bpath + '/../lang.en.js'; // needs better naming...
                    //File.write(this.transfile, "");
-                   if (this.target) {
+                   if (this.target.length) {
                        File.write(this.target, "");
                    }