From bc40eac3e633a4120313e95abb54da103fc48c39 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 15 Mar 2016 11:53:09 +0800 Subject: load config for task --- xmake/core/project/task.lua | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'xmake/core/project/task.lua') diff --git a/xmake/core/project/task.lua b/xmake/core/project/task.lua index 8e4fcb57d..d8a1150ad 100644 --- a/xmake/core/project/task.lua +++ b/xmake/core/project/task.lua @@ -267,27 +267,21 @@ function task.run(name) -- get the task info local taskinfo = tasks[name] if not taskinfo then - - -- trace utils.error("task(\"%s\"): unknown task", name) return false end -- check if not taskinfo.run then - - -- trace utils.error("task(\"%s\"): no run script, please call on_task_run() first!", name) return false end -- load global - if not global.load() then + global.load() - -- trace - utils.error("load global configure failed!") - return false - end + -- load config + config.load() -- run on_before, on_run, on_after local ok = true -- cgit v1.3.1