diff options
| author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2014-07-25 14:10:04 -0500 |
|---|---|---|
| committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2014-07-25 14:10:04 -0500 |
| commit | 19c215ee9fe0726a1983b36f4f8bcc21d42a5ef8 (patch) | |
| tree | 8a47941bbc34397269c9b42a84e33db6d0294476 /src/rebar_core.erl | |
| parent | e8a6cfe04ab0612dcd089c7aed035520e3dd9aee (diff) | |
| parent | 3fb4a7c540da227382ea0831c0c6424765900123 (diff) | |
Merge pull request #299 from tuncer/rok-resource-forks
Fix OS X resource fork handling (Reported-by: Richard O'Keefe)
Diffstat (limited to 'src/rebar_core.erl')
| -rw-r--r-- | src/rebar_core.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rebar_core.erl b/src/rebar_core.erl index 212365b..4557bb8 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -593,8 +593,7 @@ load_plugin_modules(Config, PredirsAssoc, Modules) -> ?DEBUG("Plugin dirs for ~s:~n~p~n", [Cwd, PluginDirs]), %% Find relevant sources in base_dir and plugin_dir - Erls = string:join([atom_to_list(M)++"\\.erl" || M <- Modules], "|"), - RE = "^" ++ Erls ++ "\$", + RE = string:join([atom_to_list(M)++"\\.erl" || M <- Modules], "|"), %% If a plugin is found both in base_dir and plugin_dir, the clash %% will provoke an error and we'll abort. Sources = [rebar_utils:find_files(PD, RE, false) || PD <- PluginDirs], |
