浏览代码

For convenience add appinfo default src_dir lookup

This makes rebar_prv_install_deps able to support more src_dir configs
pull/1486/head
Fred Hebert 8 年前
父节点
当前提交
d80c3f4da1
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      src/rebar_app_discover.erl

+ 5
- 1
src/rebar_app_discover.erl 查看文件

@ -246,7 +246,11 @@ find_app(AppDir, Validate) ->
-spec find_app(rebar_app_info:t(), file:filename_all(), valid | invalid | all) ->
{true, rebar_app_info:t()} | false.
find_app(AppInfo, AppDir, Validate) ->
find_app(AppInfo, AppDir, ["src"], Validate).
%% if no src dir is passed, figure it out from the app info, with a default
%% of src/
AppOpts = rebar_app_info:opts(AppInfo),
SrcDirs = rebar_dir:src_dirs(AppOpts, ["src"]),
find_app(AppInfo, AppDir, SrcDirs, Validate).
%% @doc check that a given app in a directory is there, and whether it's
%% valid or not based on the second argument. The third argument includes

正在加载...
取消
保存