From 8e195e53373d0095b713f4c9519125ed7bca3a51 Mon Sep 17 00:00:00 2001 From: Jeremy Raymond Date: Tue, 11 May 2010 12:22:12 -0400 Subject: [PATCH 1/2] Make 'command does not apply' warning into a warning --- src/rebar_core.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_core.erl b/src/rebar_core.erl index e021fc1..b6c5283 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -331,7 +331,7 @@ apply_commands([], _Modules, _Config, _ModuleFile) -> apply_commands([Command | Rest], Modules, Config, ModuleFile) -> case select_modules(Modules, Command, []) of [] -> - ?CONSOLE("WARNING: '~p' command does not apply to directory ~s\n", + ?WARN("'~p' command does not apply to directory ~s\n", [Command, rebar_utils:get_cwd()]), apply_commands(Rest, Modules, Config, ModuleFile); TargetModules -> From 100f277192b5f0a9507071e8bcc0c33d369d86e5 Mon Sep 17 00:00:00 2001 From: Bob Ippolito Date: Sat, 8 May 2010 04:52:52 -0700 Subject: [PATCH 2/2] comment typo --- src/rebar_core.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_core.erl b/src/rebar_core.erl index b6c5283..39565ac 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -271,7 +271,7 @@ process_dir(Dir, ParentConfig, Commands) -> {DirModules, ModuleSetFile} = choose_module_set(AvailModuleSets, Dir), %% Get the list of modules for "any dir". This is a catch-all list of modules - %% that are processed in addion to modules associated with this directory + %% that are processed in addition to modules associated with this directory %% type. These any_dir modules are processed FIRST. {ok, AnyDirModules} = application:get_env(rebar, any_dir_modules), Modules = AnyDirModules ++ DirModules,