You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/09/23 14:29:12 UTC

[18/50] rebar commit: updated refs/heads/import to 5dea85d

dialyzer: change plt_location to rebar3 default

To match rebar3, change plt_location's default to 'local'.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/commit/17477b54
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/tree/17477b54
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/diff/17477b54

Branch: refs/heads/import
Commit: 17477b54f83b4fbf22aad1435182d05d35c11991
Parents: 5dfdd90
Author: Tuncer Ayaz <tu...@gmail.com>
Authored: Fri May 22 09:46:56 2015 +0200
Committer: Tuncer Ayaz <tu...@gmail.com>
Committed: Fri May 22 09:53:38 2015 +0200

----------------------------------------------------------------------
 src/rebar_dialyzer.erl | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/17477b54/src/rebar_dialyzer.erl
----------------------------------------------------------------------
diff --git a/src/rebar_dialyzer.erl b/src/rebar_dialyzer.erl
index 982cc7e..0e44592 100644
--- a/src/rebar_dialyzer.erl
+++ b/src/rebar_dialyzer.erl
@@ -143,8 +143,8 @@ info_help(Description) ->
         Description,
         {dialyzer,
          [
-          {plt_location, shared},
           {plt_location, local},
+          {plt_location, shared},
           {plt_location, "custom_dir"},
           {plt_extra_apps, [app1, app2]},
           {warnings, [unmatched_returns, error_handling]}
@@ -164,7 +164,7 @@ plt(Config, AppFile, Opts) ->
     {NewConfig, Plt}.
 
 plt_dir(Config, Opts) ->
-    Location = proplists:get_value(plt_location, Opts, shared),
+    Location = proplists:get_value(plt_location, Opts, local),
     plt_dir1(Config, Location).
 
 plt_dir1(_Config, Location) when is_list(Location) ->
@@ -174,12 +174,12 @@ plt_dir1(_Config, Location) when is_list(Location) ->
         true ->
             Location
     end;
-plt_dir1(_Config, shared) ->
-    {ok, Home} = init:get_argument(home),
-    filename:join([Home, ".rebar", "plt"]);
 plt_dir1(Config, local) ->
     BaseDir = rebar_utils:base_dir(Config),
-    filename:join([BaseDir, ".rebar"]).
+    filename:join([BaseDir, ".rebar"]);
+plt_dir1(_Config, shared) ->
+    {ok, Home} = init:get_argument(home),
+    filename:join([Home, ".rebar", "plt"]).
 
 check_plt_existence(Plt) ->
     case filelib:is_regular(Plt) of