JSDOC/Packer.vala
authorAlan Knowles <alan@roojs.com>
Wed, 28 Oct 2015 10:02:13 +0000 (18:02 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 28 Oct 2015 10:02:13 +0000 (18:02 +0800)
JSDOC/Packer.vala

index e0c6132..9b823e7 100644 (file)
@@ -117,16 +117,17 @@ namespace JSDOC
                                this.files.add(f); //?? easier way?
                        }
                }
-               FileOutputStream targetStream;
-               FileOutputStream targetDebugStream;
+               FileOutputStream targetStream = null;
+               FileOutputStream targetDebugStream  = null;
                
                public void pack()
                {
                    if (!this.files) {
                                throw new Packer.ArgumentError("No Files loaded before pack() called");
                        }
-                       
-                       
+                       if (this.target.length > 0 ) {
+                               this.targetStream = File.new_for_path(this.target).replace(null, false,FileCreateFlags.NONE);
+                       }
                        this.packAll();
                }