erlbuild is a developer tool which reduce the cycle of comiling code, testing code and reloading code. Everthing the developer has to do is to save his(her) source file and erlbuild will do the rest for you.
- support of erlang source files in the src directory
- support of erlydtl *.dtl files in the templates directory
To configure erlbuild for your project, you only have to configure the dependency and start erlbuild.
If you already have a rebar.config file, than insert the erlbuild dependency into the config file.
{deps, [
{erlbuild, ".*", {git, "[email protected]:ulfa/erlbuild.git", "HEAD"}}
]}.
To start erlbuild you can do the following :
- in the shell :
application:start(erlbuild)
- when you start the erlang shell
erl -pa $PWD/ebin $PWD/test $PWD/deps/*/ebin -boot start_sasl -s erlbuild
Before erlbuild will compile and reload the first time, you have to compile your sources once. After this, erlbuild will do the job for you.
Second issue.
When the beam is not loaded, only compiled into the ebin directory and then you edit and make a mistake. The src file won't be compiled again, because the cc_file_poller is buggy.