diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-08-05 19:56:27 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-08-05 19:56:27 +0200 |
commit | 0b18b208e221adc8c5095a670313395615bae766 (patch) | |
tree | 15cbd8d31cbfbd9ba899178bc43d75171bae66f7 /src/rebar_utils.erl | |
parent | 4f19572ff90909ccdcea76872e1cc9e389b1d67b (diff) |
Only print absolute filename if not in base_dir
Diffstat (limited to 'src/rebar_utils.erl')
-rw-r--r-- | src/rebar_utils.erl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 5da53dd..4d52dff 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -51,7 +51,8 @@ erl_opts/1, src_dirs/1, test_dir/0, - ebin_dir/0]). + ebin_dir/0, + processing_base_dir/1, processing_base_dir/2]). -include("rebar.hrl"). @@ -313,6 +314,13 @@ test_dir() -> ebin_dir() -> filename:join(rebar_utils:get_cwd(), "ebin"). +processing_base_dir(Config) -> + Cwd = rebar_utils:get_cwd(), + processing_base_dir(Config, Cwd). + +processing_base_dir(Config, Dir) -> + Dir =:= rebar_config:get_xconf(Config, base_dir). + %% ==================================================================== %% Internal functions %% ==================================================================== |