mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Added more common routines to common.jake.
Reviewed by me.
This commit is contained in:
+14
-1
@@ -8,7 +8,7 @@ var ENV = require("system").env,
|
||||
|
||||
global.task = Jake.task;
|
||||
global.directory = Jake.directory;
|
||||
global.file = Jake.file;
|
||||
//global.file = Jake.file;
|
||||
global.filedir = Jake.filedir;
|
||||
|
||||
/*
|
||||
@@ -66,6 +66,19 @@ global.$ENVIRONMENT_FRAMEWORKS_DIR = FILE.join($ENVIRONMENT_LIB_DIR, 'Frameworks
|
||||
global.$HOME_DIR = FILE.absolute(FILE.dirname(module.path));
|
||||
global.$LICENSE_FILE = FILE.absolute(FILE.join(FILE.dirname(module.path), 'LICENSE'));
|
||||
|
||||
var objectiveJLib = FILE.join($BUILD_DIR, "objective-j", "lib");
|
||||
|
||||
if (FILE.exists(objectiveJLib))
|
||||
{
|
||||
require.paths.unshift(objectiveJLib);
|
||||
|
||||
var OBJECTIVE_J_JAKE = require("objective-j/jake");
|
||||
|
||||
global.bundle = OBJECTIVE_J_JAKE.bundle;
|
||||
global.framework = OBJECTIVE_J_JAKE.framework;
|
||||
global.BundleTask = OBJECTIVE_J_JAKE.BundleTask;
|
||||
}
|
||||
|
||||
global.rm_rf = function(/*String*/ aFilename)
|
||||
{
|
||||
try { FILE.rmtree(aFilename); }
|
||||
|
||||
Reference in New Issue
Block a user