Permalink
Browse files

Hack: skip reltool.config to not abort on it;

  • Loading branch information...
1 parent c288254 commit a5db0149a235a70bd9a4dbf43458fe1e9a9d7cda Tomas Morstein committed Feb 28, 2013
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/rebar_vsn_plugin.erl
View
@@ -119,7 +119,17 @@ get_app_meta(Config, EbinAppFile) ->
case file:consult(EbinAppFile) of
{ok, [{application, AppName, Details}]} ->
{AppName, Details};
+ {ok, NonApp} ->
+ case proplists:is_defined (sys, NonApp) of
ericbmerritt
ericbmerritt Sep 19, 2013

no space between the fun and its parens.

+ true ->
+ rebar_log:log(warn, "Skipping release config: ~s~n", [EbinAppFile]);
+ _ ->
+ rebar_log:log(warn, "Skipping unknown config: ~s~n", [EbinAppFile])
+ end,
+ {'#release', []};
_ ->
- rebar_utils:abort("Unable to read app file ~s~n", [EbinAppFile])
+ rebar_log:log(warn, "Unable to read app file: ~s~n", [EbinAppFile]),
+ {'#unknown', []}
+ %rebar_utils:abort("Unable to read app file ~s~n", [EbinAppFile])
ericbmerritt
ericbmerritt Sep 19, 2013

please don't comment out code. just delete it.

end
end.

0 comments on commit a5db014

Please sign in to comment.