if (this.targetDebugStream != null) {
this.targetDebugStream.write("".data);
}
+
+
foreach(var file in this.files) {
print("reading %s\n",file );
if (this.targetDebugStream !=null) {
FileUtils.get_contents(file,out file_contents);
- this.targetDebugStream.write(file_contents);
+ this.targetDebugStream.write(file_contents.data);
loaded_string = false;
}
// it's a good idea to check with 0 compression to see if the code can parse!!
- var minfile = this.tmpDir + '/' + file.replace("/", '.');
+ var minfile = this.tmpDir + "/" + file.replace("/", ".");
// let's see if we have a min file already?
*/
print("MERGING SOURCE");
- for(var i=0; i < this.files.length; i++) {
+ for(var i=0; i < this.files.size; i++) {
var file = this.files[i];
- var minfile = this.tmpDir + '/' + file.replace('/', '.');
+ var minfile = this.tmpDir + "/" + file.replace("/", ".");
- if (!File.exists(minfile)) {
+ if ( FileUtils.test(minfile, FileTest.EXISTS)) {
continue;
}
- var str = File.read(minfile);
- print("using MIN FILE "+ minfile);
- if (str.length) {
+ string str;
+ FileUtils.get_contents(minfile, out str);
+ print("using MIN FILE %s\n", minfile);
+ if (str.length > 0) {
if (this.targetStream != null) {
- this.targetStream.write("//" + file + "\n");
- this.targetStream.write(str + "\n");
+ this.targetStream.write(("//" + file + "\n").data);
+ this.targetStream.write((str + "\n").data);
} else {
this.out += "//" + file + "\n";