erlware / rebar_vsn_plugin

Provides a more reasonable versioning scheme then the rebar standard 'git' vsn extension
17 stars 14 forks source link

Сompilation of a plugin #9

Closed define-null closed 11 years ago

define-null commented 11 years ago

It should be mentioned that in order to use this plugin as a dep this section should be added to rebar.config:

{plugin_dir, "deps/rebar_vsn_plugin/src"}.

Without this section if we run

rebar get-deps
rebar compile

All the code will be compiled but the plugin would not work, because at the compile of the application it wasnot already compiled. Plugin_dir will force compiling of a plugin and will load it at run-time.

ericbmerritt commented 11 years ago

ah, yes. My solution to that has been just to run compile twice the first time. This is a nicer solution though. I will add it to the readme.