소스 검색

Merge pull request #537 from tsloughter/plugin_overrides

fix for overrides in plugins, simpler plugin state handling
pull/452/head
Fred Hebert 10 년 전
부모
커밋
ee286ed443
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. +1
    -0
      src/rebar_hooks.erl
  2. +1
    -3
      src/rebar_plugins.erl

+ 1
- 0
src/rebar_hooks.erl 파일 보기

@ -67,6 +67,7 @@ run_hooks(Dir, Type, Command, State) ->
_ ->
[]
end,
Env = create_env(State),
lists:foreach(fun({_, C, _}=Hook) when C =:= Command ->
apply_hook(Dir, Env, Hook);

+ 1
- 3
src/rebar_plugins.erl 파일 보기

@ -93,9 +93,7 @@ handle_plugin(Profile, Plugin, State, Upgrade) ->
build_plugin(AppInfo, Apps, State) ->
Providers = rebar_state:providers(State),
Providers1 = rebar_state:providers(rebar_app_info:state(AppInfo)),
AppDir = rebar_app_info:dir(AppInfo),
C = rebar_config:consult(AppDir),
S = rebar_state:new(rebar_state:all_deps(rebar_state:new(), Apps), C, AppDir),
S = rebar_state:all_deps(rebar_app_info:state_or_new(State, AppInfo), Apps),
rebar_prv_compile:compile(S, Providers++Providers1, AppInfo).
plugin_providers({Plugin, _, _, _}) when is_atom(Plugin) ->

불러오는 중...
취소
저장