Jelajahi Sumber

fix(rebar.config.script): wildcard path to mods dir

This is to allow using emqx in another project
Zaiming Shi 5 tahun lalu
induk
melakukan
1b963252cf
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      rebar.config.script

+ 1 - 1
rebar.config.script

@@ -7,7 +7,7 @@ CompileOpts = [verbose,report_errors,report_warnings,return_errors,binary],
         {module, _} = code:load_binary(Mod, ModFile, BinCode);
         {module, _} = code:load_binary(Mod, ModFile, BinCode);
     Error ->
     Error ->
         io:format("[error] compile:file(~p) failed: ~p~n", [ModFile, Error])
         io:format("[error] compile:file(~p) failed: ~p~n", [ModFile, Error])
- end || ModFile <- filelib:wildcard("mods/*.erl")],
+ end || ModFile <- filelib:wildcard("**/mods/mod_*.erl")],
 
 
 %% TODO: load the plugins here:
 %% TODO: load the plugins here:
 %% get user plugins from a text file, fetch it and compile
 %% get user plugins from a text file, fetch it and compile