Skip to content

Commit

Permalink
Re-define now missing rebar.hrl logging macro's
Browse files Browse the repository at this point in the history
As of this recent pull-request to rebar/rebar:
rebar/rebar#281,
rebar/include/rebar.hrl no longer exists.

Since this project doesn't depend on any particular
version of rebar, and doesn't build with the
latest version from master, I have
reimplemented the logging macros that were previously
taken from the include file in the source itself.
  • Loading branch information
sebastian committed Jun 20, 2014
1 parent d30e9c6 commit 436ed57
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/rebar_proper_plugin.erl
Expand Up @@ -2,7 +2,6 @@
-module(rebar_proper_plugin).
-export([proper/2]).

-include_lib("rebar/include/rebar.hrl").
-define(PROPER_DIR, ".proper").

%% +-----------------------------------------------------------------+
Expand All @@ -11,6 +10,14 @@
proper(Config, _AppFile) ->
run_proper(Config, proper_opts(Config), proper_check_spec(Config)).

%% +-----------------------------------------------------------------+
%% | LOGGING MACROS |
%% +-----------------------------------------------------------------+

-define(DEBUG(Str, Args), rebar_log:log(debug, Str, Args)).
-define(CONSOLE(Str, Args), io:format(Str, Args)).
-define(ABORT(Str, Args), rebar_utils:abort(Str, Args)).

%% +-----------------------------------------------------------------+
%% | PRIVATE FUNCTIONS |
%% +-----------------------------------------------------------------+
Expand Down

0 comments on commit 436ed57

Please sign in to comment.