summaryrefslogtreecommitdiff
path: root/src/rebar_prv_as.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-06-19 10:19:12 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-06-19 10:19:12 -0400
commit70dbbf95c24c054514e0ef2ba28c765d33bbf5d7 (patch)
tree8b1bcec2ea3ed1a3adf3a8211d59bab985a4464b /src/rebar_prv_as.erl
parent4edfed60a201921995cea987494839eeb6b75638 (diff)
parentf7ff07a87d3e282b4016c1725d149389b0d3b6f9 (diff)
Merge pull request #505 from tsloughter/plugins_provider
plugins provider
Diffstat (limited to 'src/rebar_prv_as.erl')
-rw-r--r--src/rebar_prv_as.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rebar_prv_as.erl b/src/rebar_prv_as.erl
index d8f19d4..ead7b01 100644
--- a/src/rebar_prv_as.erl
+++ b/src/rebar_prv_as.erl
@@ -38,13 +38,14 @@ do(State) ->
{error, "At least one profile must be specified when using `as`"};
_ ->
State1 = rebar_state:apply_profiles(State, [list_to_atom(X) || X <- Profiles]),
+ State2 = rebar_plugins:project_apps_install(State1),
{FirstTask, FirstTaskArgs} = hd(Tasks),
FirstTaskAtom = list_to_atom(FirstTask),
- case rebar_core:process_namespace(State1, FirstTaskAtom) of
- {ok, State2, NewTask} ->
+ case rebar_core:process_namespace(State2, FirstTaskAtom) of
+ {ok, State3, NewTask} ->
rebar_prv_do:do_tasks(
[{atom_to_list(NewTask),FirstTaskArgs}|tl(Tasks)],
- State2
+ State3
);
{error, Reason} ->
{error, Reason}