diff options
| author | ruki <[email protected]> | 2016-03-15 11:53:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-03-15 11:53:09 +0800 |
| commit | bc40eac3e633a4120313e95abb54da103fc48c39 (patch) | |
| tree | 25efc1557fdd45617b1bbb6d11bacc6244cec198 /xmake/core/project/task.lua | |
| parent | 27ee91d65fe054439195781808da6cb57316238e (diff) | |
load config for task
Diffstat (limited to 'xmake/core/project/task.lua')
| -rw-r--r-- | xmake/core/project/task.lua | 12 |
1 files changed, 3 insertions, 9 deletions
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 |
