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);
});
message: "No template Directory specified"
};
}
-
+ if (this.template[0] !='/') {
+ this.template = this.baseDir + '/' + this.template;
+ }
+
+
if (!this.target) {
throw {
name: "ArgumentError",