mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Minor cleanup, much more needed.
Reviewed by me.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user