Minor cleanup, much more needed.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2009-10-13 12:34:33 -07:00
parent a607d79c7d
commit 2f5e4d8335
3 changed files with 15 additions and 2 deletions
-2
View File
@@ -2,8 +2,6 @@
require("../../../common.jake");
var blend = require("objective-j/jake/blendtask").blend;
blend("Aristo.blend", function(aristoTask)
{
@@ -1,4 +1,7 @@
var FILE = require("file");
var BUNDLE_TASK = require("objective-j/jake/bundletask");
exports.BundleTask = BUNDLE_TASK.BundleTask;
@@ -13,3 +16,12 @@ var APPLICATION_TASK = require("objective-j/jake/applicationtask");
exports.ApplicationTask = APPLICATION_TASK.ApplicationTask;
exports.app = APPLICATION_TASK.app;
// This check is only necessary because during the build process blendtask gets created much later.
if (FILE.exists(FILE.join(FILE.dirname(module.path), "jake", "blendtask.j")))
{
var BLEND_TASK = require("objective-j/jake/blendtask");
exports.BlendTask = BLEND_TASK.BlendTask;
exports.blend = BLEND_TASK.blend;
}
+3
View File
@@ -68,6 +68,9 @@ if(!global.COMMON_DO_ONCE)
global.bundle = OBJECTIVE_J_JAKE.bundle;
global.framework = OBJECTIVE_J_JAKE.framework;
if (OBJECTIVE_J_JAKE.blend)
global.blend = OBJECTIVE_J_JAKE.blend;
global.BundleTask = OBJECTIVE_J_JAKE.BundleTask;
}