JSDOC/BuildDocs.js
[gnome.introspection-doc-generator] / JSDOC / BuildDocs.js
index 2ef7e4b..9a8619c 100644 (file)
@@ -83,7 +83,10 @@ BuildDocs = {
         
         for (var i = 0; i < Options.src.length; i++) {
             // add to sourcefiles..
-            
+            if (!File.isDirectory(Options.src[i])) {
+                _this.srcFiles.push(Options.src[i]);
+                continue;
+            }
             File.list(Options.src[i] ).forEach(function($) {
                 if (Options['exclude-src'].indexOf($) > -1) {
                     return;
@@ -112,6 +115,9 @@ BuildDocs = {
             
             var srcFile = this.srcFiles[i];
             
+            Options.LOG.inform("reading i : " + i + " length : " + this.srcFiles.length);
+            
+            
             
             var cacheFile = !Options.cacheDirectory.length ? false : 
                 Options.cacheDirectory + srcFile.replace(/\//g, '_') + ".cache";