From c0644dc1959320ef9ae9f2206ecfb5d04e188e6e Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Mon, 23 Jul 2012 16:48:15 +0200 Subject: Finalize app=, skip_app=, suite= deprecations --- src/rebar_app_utils.erl | 4 ++-- src/rebar_ct.erl | 2 +- src/rebar_eunit.erl | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/rebar_app_utils.erl b/src/rebar_app_utils.erl index d21d9cb..c0df97f 100644 --- a/src/rebar_app_utils.erl +++ b/src/rebar_app_utils.erl @@ -180,7 +180,7 @@ is_skipped(ThisApp, TargetApps) -> end. get_apps(Config) -> - rebar_utils:get_deprecated_global(Config, app, apps, "soon"). + rebar_config:get_global(Config, apps, undefined). get_skip_apps(Config) -> - rebar_utils:get_deprecated_global(Config, skip_app, skip_apps, "soon"). + rebar_config:get_global(Config, skip_apps, undefined). diff --git a/src/rebar_ct.erl b/src/rebar_ct.erl index 089d6cf..a875116 100644 --- a/src/rebar_ct.erl +++ b/src/rebar_ct.erl @@ -249,7 +249,7 @@ get_config_file(TestDir) -> end. get_suites(Config, TestDir) -> - case rebar_utils:get_deprecated_global(Config, suite, suites, "soon") of + case rebar_config:get_global(Config, suites, undefined) of undefined -> " -dir " ++ TestDir; Suites -> diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl index 96f1e5f..18875ab 100644 --- a/src/rebar_eunit.erl +++ b/src/rebar_eunit.erl @@ -148,8 +148,7 @@ setup_code_path() -> CodePath. filter_modules(Config, Modules) -> - RawSuites = rebar_utils:get_deprecated_global(Config, suite, suites, - [], "soon"), + RawSuites = rebar_config:get_global(Config, suites, ""), Suites = [list_to_atom(Suite) || Suite <- string:tokens(RawSuites, ",")], filter_modules1(Modules, Suites). -- cgit v1.1