loadSourceFile : function()
{
- var lines = File.read(this.srcfile).split("\n");;
+ var lines = File.read(this.srcfile).split("\n");
+ var _this = this;
+ lines.forEach(function(f) {
+
+ if (/^\s*\//.test(f) || !/[a-z]+/i.test(f)) { // skip comments..
+ continue;
+ }
+ if (/\.js$/.test(f)) {
+ _this.files.push( f);
+ // js file..
+ continue;
+ }
+
+ //println("ADD"+ f.replace(/\./g, '/'));
+ _this.files.push( f.replace(/\./g, '/').replace(/\s+/g,'')+'.js');
+
+ })
},