summaryrefslogtreecommitdiff
path: root/xmake/core/project/task.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-05-03 10:18:09 +0800
committerruki <[email protected]>2016-05-03 10:18:09 +0800
commit33cd1abcf4aa733ac68f619dac0183f547d787c3 (patch)
tree2c8f669eb26b8484654aa39efeea26d9ec84282f /xmake/core/project/task.lua
parent6acc7c9d410f46d804a8f278badf14e7e99ea1be (diff)
fix find tool bug
Diffstat (limited to 'xmake/core/project/task.lua')
-rw-r--r--xmake/core/project/task.lua20
1 files changed, 2 insertions, 18 deletions
diff --git a/xmake/core/project/task.lua b/xmake/core/project/task.lua
index f095772b1..d695c9c83 100644
--- a/xmake/core/project/task.lua
+++ b/xmake/core/project/task.lua
@@ -382,24 +382,8 @@ function task.run(name)
return false, string.format("task(\"%s\"): no run script, please call on_task_run() first!", name)
end
- -- run on_before, on_run, on_after
- local on_scripts = {taskinfo.before, taskinfo.run, taskinfo.after}
- for i = 1, 3 do
-
- -- get script
- local on_script = on_scripts[i]
- if on_script then
-
- -- call it in the sandbox
- local ok, errors = sandbox.load(on_script)
- if not ok then
- return false, errors
- end
- end
- end
-
- -- ok
- return true
+ -- run task
+ return sandbox.load(taskinfo.run)
end
-- the menu