A splash of color in the build tools...

This commit is contained in:
Tom Robinson committed 2010-01-13 12:58:26 -08:00
1 parent 8f3661d5a4
commit df4bc13122
2 files changed
+9 -5

No files matched your search

+3 -2
View File
@@ -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];
}
@@ -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]);