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

index a119bd3..554fe50 100644 (file)
@@ -197,15 +197,18 @@ namespace JSDOC
                    foreach(var file in this.files) {
                        
                        print("reading %s\n",file );
-                       if (!File.isFile(file)) {
-                           print("SKIP (is not a file) " + file);
+                       
+                       if (FileUtils.test (file, FileTest.EXISTS) && ! FileUtils.test (file, FileTest.IS_DIR)) {
+                           print("SKIP (is not a file) %s\n ", file);
                            continue;
                        }
                       
                        // debug Target
                        
-                       if (this.debugTarget) {
-                           File.append(this.debugTarget, File.read(file));
+                       if (this.debugTargetStream !=null) {
+                               string str;
+                               FileUtils.get_contents(file,out str);
+                           this.debugTarget.write(str);
                        }
                        // it's a good idea to check with 0 compression to see if the code can parse!!