summaryrefslogtreecommitdiff
path: root/xmake/core/sandbox/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2016-05-28 19:30:26 +0800
committerruki <[email protected]>2016-05-28 19:30:26 +0800
commit7a0445c0612e9065461c1dff3eab6e992d742e4d (patch)
treebde652f9383c8b73e7e724b17654d2abe612ecd6 /xmake/core/sandbox/modules
parent125c23d12e9983234c328b805c8da5b8f78ab898 (diff)
pass task arguments
Diffstat (limited to 'xmake/core/sandbox/modules')
-rw-r--r--xmake/core/sandbox/modules/import/core/project/task.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/sandbox/modules/import/core/project/task.lua b/xmake/core/sandbox/modules/import/core/project/task.lua
index 99ef6ea24..599c67c9e 100644
--- a/xmake/core/sandbox/modules/import/core/project/task.lua
+++ b/xmake/core/sandbox/modules/import/core/project/task.lua
@@ -33,7 +33,7 @@ local task = require("project/task")
local raise = require("sandbox/modules/raise")
-- run the given task
-function sandbox_core_project_task.run(taskname, options)
+function sandbox_core_project_task.run(taskname, options, ...)
-- init options
options = table.wrap(options)
@@ -54,7 +54,7 @@ function sandbox_core_project_task.run(taskname, options)
end
-- run the task
- local ok, errors = task.run(taskname)
+ local ok, errors = task.run(taskname, ...)
if not ok then
raise(errors)
end