jvantuyl / erlctl

Command Line Interface Framework for Erlang
Other
36 stars 6 forks source link

rebar instead of rake #2

Open benbro opened 13 years ago

benbro commented 13 years ago

Hi

Is it possible to use rebar instead of rake so we won't need to install ruby and rake just to build pure erlang code? http://bitbucket.org/basho/rebar/wiki/Home

Thanks

jvantuyl commented 13 years ago

It's most certainly possible.

The one problem I have is that I typically split my components into different applications. For example, erlctl packages the example app as a separate application.

With rebar, it appears to be made to do releases and such from within a single application only. The documentation is rather sparse, so I'm unclear how to get it to do a release against multiple applications. Additionally, the erlctl script is made to use whichever erlang is on the PATH (via escript). At this time, I'm not sure exactly how to handle the release process so that erlctl finds the right release.

That said, I do want to use rebar. I mostly used rake because I needed something quick and dirty. I'll hit up the Basho guys and see what the best way to approach this would be. It probably won't happen fast, but it's on my list now.

benbro commented 13 years ago

Maybe you can split it to two separate packages, erlctl and ctl_ex? That way you can use rebar for each package separately. Any way, your use case is valid and if rebar doesn't support it they probably will be happy to implement it.

Not sure I understand the issue with several erlang installations on the same machine.

Thanks