diff --git a/AppKit/Jakefile b/AppKit/Jakefile index 169c19d20..a958e237f 100644 --- a/AppKit/Jakefile +++ b/AppKit/Jakefile @@ -1,6 +1,8 @@ require("../common.jake"); +var framework = require("objective-j/jake").framework; +var BundleTask = require("objective-j/jake").BundleTask; $BUILD_PATH = FILE.join($BUILD_DIR, $CONFIGURATION, 'AppKit'); diff --git a/AppKit/Themes/Aristo/Jakefile b/AppKit/Themes/Aristo/Jakefile index dccab04a2..b643bb65a 100644 --- a/AppKit/Themes/Aristo/Jakefile +++ b/AppKit/Themes/Aristo/Jakefile @@ -1,6 +1,7 @@ require("../../../common.jake"); +var blend = require("cappuccino/jake").blend; blend ("Aristo.blend", function(aristoTask) { diff --git a/AppKit/Themes/BlendKit/Jakefile b/AppKit/Themes/BlendKit/Jakefile index 488fad2b3..4de9f96bb 100644 --- a/AppKit/Themes/BlendKit/Jakefile +++ b/AppKit/Themes/BlendKit/Jakefile @@ -1,6 +1,8 @@ require("../../../common.jake"); +var framework = require("objective-j/jake").framework; +var BundleTask = require("objective-j/jake").BundleTask; blendKitTask = framework ("BlendKit", function(blendKitTask) { diff --git a/AppKit/Themes/CommonJS/Jakefile b/AppKit/Themes/CommonJS/Jakefile index 0d0bd6b93..f85dee241 100644 --- a/AppKit/Themes/CommonJS/Jakefile +++ b/AppKit/Themes/CommonJS/Jakefile @@ -3,7 +3,6 @@ require("../../../common.jake"); var FILE = require("file"); - $BLENDTASK = "blendtask.j"; $BUILD_CJS_BLENDTASK = FILE.join($BUILD_CJS_CAPPUCCINO, "lib", "cappuccino", "jake", "blendtask.j"); diff --git a/AppKit/Themes/Jakefile b/AppKit/Themes/Jakefile index 7dfa4da91..08b139ea2 100644 --- a/AppKit/Themes/Jakefile +++ b/AppKit/Themes/Jakefile @@ -1,6 +1,4 @@ -#!/usr/bin/env narwhal require("../../common.jake"); - subtasks(["BlendKit", "CommonJS", "Aristo"], ["build", "clean", "clobber"]); diff --git a/CommonJS/Jakefile b/CommonJS/Jakefile index c16dd54a0..311843c93 100644 --- a/CommonJS/Jakefile +++ b/CommonJS/Jakefile @@ -1,7 +1,6 @@ require("../common.jake"); - var FILE = require("file"); new FileList("**/*").exclude("Jakefile").forEach(function(aFilename) diff --git a/Foundation/Jakefile b/Foundation/Jakefile index 36b065a9d..b2720208c 100644 --- a/Foundation/Jakefile +++ b/Foundation/Jakefile @@ -22,6 +22,8 @@ require("../common.jake"); +var framework = require("objective-j/jake").framework; +var BundleTask = require("objective-j/jake").BundleTask; foundationTask = framework ("Foundation", function(foundationTask) { diff --git a/Jakefile b/Jakefile index 21604f47d..c308f60ad 100644 --- a/Jakefile +++ b/Jakefile @@ -1,4 +1,5 @@ -#!/usr/bin/env narwhal + +require("./common.jake"); var FILE = require("file"), SYSTEM = require("system"), @@ -6,8 +7,6 @@ var FILE = require("file"), jake = require("jake"), stream = require("term").stream; -require(FILE.absolute("common.jake")); - var subprojects = ["Objective-J", "CommonJS", "Foundation", "AppKit", "Tools"]; ["build", "clean", "clobber"].forEach(function(aTaskName) diff --git a/Objective-J/Jakefile b/Objective-J/Jakefile index 72f252359..8ed79d573 100644 --- a/Objective-J/Jakefile +++ b/Objective-J/Jakefile @@ -20,11 +20,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +require("../common.jake"); + var FILE = require("file"), OS = require("os"), stream = require("term").stream; -require("../common.jake"); //$BUILD_CONFIGURATION_DIR = "../Build" $BROWSER_FILE = FILE.join("Browser", "Objective-J.js"); diff --git a/Tools/Jakefile b/Tools/Jakefile index f508bfbe6..93affadcf 100644 --- a/Tools/Jakefile +++ b/Tools/Jakefile @@ -1,7 +1,5 @@ -#!/usr/bin/env narwhal require("../common.jake"); - // nib2cib has to come before capp since capp uses nib2cib subtasks(["nib2cib", "capp"/*, "bake"*/, "press"], ["build"/*, "clean", "clobber"*/]); diff --git a/Tools/capp/Jakefile b/Tools/capp/Jakefile index 3fb533ef3..c6260c925 100644 --- a/Tools/capp/Jakefile +++ b/Tools/capp/Jakefile @@ -1,7 +1,8 @@ - require ("../../common.jake"); +var app = require("objective-j/jake").app; +var BundleTask = require("objective-j/jake").BundleTask; app ("capp", function(cappTask) { diff --git a/Tools/nib2cib/Jakefile b/Tools/nib2cib/Jakefile index 66915639a..e711b6813 100644 --- a/Tools/nib2cib/Jakefile +++ b/Tools/nib2cib/Jakefile @@ -1,9 +1,10 @@ - -var FILE = require("file"); - require("../../common.jake"); +var FILE = require("file"); + +var app = require("objective-j/jake").app; +var BundleTask = require("objective-j/jake").BundleTask; app ("nib2cib", function(nib2cibTask) { diff --git a/Tools/press/Jakefile b/Tools/press/Jakefile index d63b0fb75..bfbdadfc6 100644 --- a/Tools/press/Jakefile +++ b/Tools/press/Jakefile @@ -1,7 +1,8 @@ -#!/usr/bin/env narwhal require ("../../common.jake"); +var app = require("objective-j/jake").app; +var BundleTask = require("objective-j/jake").BundleTask; app ("press", function(pressTask) { diff --git a/common.jake b/common.jake index f17d5f2c8..258ca4c69 100644 --- a/common.jake +++ b/common.jake @@ -189,35 +189,11 @@ function handleSetupEnvironmentError(e) { function setupEnvironment() { - // TODO: deprecate these globals - try { - var OBJECTIVE_J_JAKE = require("objective-j/jake"); - - global.app = OBJECTIVE_J_JAKE.app; - global.bundle = OBJECTIVE_J_JAKE.bundle; - global.framework = OBJECTIVE_J_JAKE.framework; - - global.BundleTask = OBJECTIVE_J_JAKE.BundleTask; - } catch (e) { - handleSetupEnvironmentError(e); - } - try { require("objective-j").OBJJ_INCLUDE_PATHS.push(FILE.join($BUILD_CONFIGURATION_DIR, "CommonJS", "cappuccino", "Frameworks")); } catch (e) { handleSetupEnvironmentError(e); } - - try { - var CAPPUCCINO_JAKE = require("cappuccino/jake"); - if (CAPPUCCINO_JAKE.blend) - global.blend = CAPPUCCINO_JAKE.blend; - //else - // print("no blend!") - } - catch (e) { - handleSetupEnvironmentError(e); - } } setupEnvironment();