mirror of
https://github.com/correl/rebar.git
synced 2024-12-21 03:00:13 +00:00
3b58935b86
This patch updates rebar_core to look for missing plugins (i.e. those that aren't found on the code path at runtime) in a configurable plugin directory, and dynamically compile and load them at runtime. By default, the directory "plugins" is searched, although this can be overriden by setting the plugin_dir in your rebar.config.
7 lines
156 B
Erlang
7 lines
156 B
Erlang
-module(bad_plugin).
|
|
-compile(export_all).
|
|
|
|
%% this plugin contains numerous DELIBERATE syntax errors
|
|
|
|
fwibble(Config, _) >
|
|
file:delete("fwibble.test")
|