diff --git a/AppKit/Themes/CommonJS/blendtask.j b/AppKit/Themes/CommonJS/blendtask.j index 69c4d348b..e0e969e42 100644 --- a/AppKit/Themes/CommonJS/blendtask.j +++ b/AppKit/Themes/CommonJS/blendtask.j @@ -6,6 +6,7 @@ var FILE = require("file"), + TERM = require("term"), task = require("jake").task, filedir = require("jake").filedir, BundleTask = require("objective-j/jake/bundletask").BundleTask; @@ -153,7 +154,7 @@ function themeFromCibData(data) theme = [[CPTheme alloc] initWithName:[object valueForKey:@"name"]]; } - print("Building " + [theme name] + " theme"); + TERM.stream.print("Building \0green(" + [theme name] + "\0) theme"); [templates makeObjectsPerformSelector:@selector(blendAddThemedObjectAttributesToTheme:) withObject:theme]; @@ -216,7 +217,7 @@ function themeFromCibData(data) if (themedObject) { - print(" Recording themed properties for " + [themedObject className] + "."); + TERM.stream.print(" Recording themed properties for \0purple(" + [themedObject className] + "\0)."); [aTheme takeThemeFromObject:themedObject]; } diff --git a/Objective-J/CommonJS/lib/objective-j/jake/bundletask.js b/Objective-J/CommonJS/lib/objective-j/jake/bundletask.js index 1791e3662..1e0b1cacc 100644 --- a/Objective-J/CommonJS/lib/objective-j/jake/bundletask.js +++ b/Objective-J/CommonJS/lib/objective-j/jake/bundletask.js @@ -2,6 +2,7 @@ var FILE = require("file"), OS = require("os"), UTIL = require("util"), + TERM = require("term"), Jake = require("jake"), CLEAN = require("jake/clean").CLEAN, CLOBBER = require("jake/clean").CLOBBER, @@ -577,7 +578,7 @@ BundleTask.prototype.defineStaticTask = function() filedir (staticPath, function(aTask) { - print("Creating static file... " + staticPath); + TERM.stream.print("Creating static file... \0green(" + staticPath +"\0)"); var fileStream = FILE.open(staticPath, "w+", { charset:"UTF-8" }), MHTMLContents = ""; @@ -704,8 +705,10 @@ BundleTask.prototype.defineSourceTasks = function() filedir (compiledEnvironmentSource, [aFilename], function() { - print("Compiling [" + anEnvironment + "] " + aFilename + "..."); - FILE.write(compiledEnvironmentSource, require("objective-j/compiler").compile(aFilename, environmentCompilerFlags), { charset:"UTF-8" }); + TERM.stream.write("Compiling [\0blue(" + anEnvironment + "\0)] \0purple(" + aFilename + "\0)").flush(); + var compiled = require("objective-j/compiler").compile(aFilename, environmentCompilerFlags); + TERM.stream.print(Array(Math.round(compiled.length / 1024) + 3).join(".")); + FILE.write(compiledEnvironmentSource, compiled, { charset:"UTF-8" }); }); filedir (staticPath, [compiledEnvironmentSource]);