|
@ -195,13 +195,14 @@ build_app(AppInfo, State) -> |
|
|
case rebar_app_info:project_type(AppInfo) of |
|
|
case rebar_app_info:project_type(AppInfo) of |
|
|
Type when Type =:= rebar3 ; Type =:= undefined -> |
|
|
Type when Type =:= rebar3 ; Type =:= undefined -> |
|
|
Compilers = rebar_state:compilers(State), |
|
|
Compilers = rebar_state:compilers(State), |
|
|
|
|
|
rebar_paths:set_paths([deps], State), |
|
|
rebar_compiler:compile_all(Compilers, AppInfo); |
|
|
rebar_compiler:compile_all(Compilers, AppInfo); |
|
|
Type -> |
|
|
Type -> |
|
|
ProjectBuilders = rebar_state:project_builders(State), |
|
|
ProjectBuilders = rebar_state:project_builders(State), |
|
|
case lists:keyfind(Type, 1, ProjectBuilders) of |
|
|
case lists:keyfind(Type, 1, ProjectBuilders) of |
|
|
{_, Module} -> |
|
|
{_, Module} -> |
|
|
%% load plugins since thats where project builders would be |
|
|
%% load plugins since thats where project builders would be |
|
|
rebar_paths:set_paths([plugins, deps], State), |
|
|
|
|
|
|
|
|
rebar_paths:set_paths([deps, plugins], State), |
|
|
Res = Module:build(AppInfo), |
|
|
Res = Module:build(AppInfo), |
|
|
rebar_paths:set_paths([deps], State), |
|
|
rebar_paths:set_paths([deps], State), |
|
|
case Res of |
|
|
case Res of |
|
|