JSDOC/Walker2.js
[gnome.introspection-doc-generator] / JSDOC / Options.js
index 479a85b..a85908a 100644 (file)
@@ -120,13 +120,13 @@ Options = {
             if (!v.length || v[0] != '/') {
                 v = _this.baseDir + (v.length ?  '/' + v : '');
             }
-            if (File.isDirectory(v)) {
+            if (!File.isDirectory(v)) {
                 throw {
                     name: "ArgumentError", 
                     message: "invalid Source Directory : " +  v
                 };
             }
-            this.src.push(v);
+            _this.src.push(v);
         });
         
         
@@ -136,7 +136,11 @@ Options = {
                 message: "No template Directory specified" 
             };
         }
-         
+        if (this.template[0] !='/') {
+            this.template = this.baseDir + '/' + this.template;
+        }
+        
+        
         if (!this.target) {
             throw {
                 name: "ArgumentError",