[erlang-questions] Rebar issues

Zsolt Czinkos <>
Thu Mar 14 16:26:31 CET 2013


Hi,

I've found the source of this issue.

In 'rebar_escripter.erl' 'filelib:wildcard/2' fuction is used. This
function cannot handle the pattern and current dir given in
rebar.config. In the rebar.config (of rebar) change escript_incl_extra
parameter like this:

{escript_incl_extra, [{"*", "priv/templates"}]}.

( {"priv/templates/*", "."} pattern won't match. It isn't clear for me why.)

Run bootsrap, and the result:

$ ./rebar version
rebar 2.1.0-pre R16A 20130314_145125 git 2.1.0-pre-64-g720d71e-dirty
$ ./rebar list-templates
==> tmp (list-templates)
  * simplesrv: simplesrv.template (escript) (variables: "srvid")
  * simplenode: simplenode.template (escript) (variables: "nodeid")
  * simplemod: simplemod.template (escript) (variables: "modid")
  * simplefsm: simplefsm.template (escript) (variables: "fsmid")
  * simpleapp: simpleapp.template (escript) (variables: "appid")
  * ctsuite: ctsuite.template (escript) (variables: "testmod")
  * basicnif: basicnif.template (escript) (variables: "module")


Best,

Zsolt

On Wed, Mar 13, 2013 at 5:27 PM, Lee Sylvester <> wrote:
> Hi guys,
>
> I've downloaded Rebar and compiled it ready for use, but whenever I copy it to my project directories and run it, I get the error:
>
> ERROR: Template simplenode not found.
>
> If I copy the priv directory to the directory I'm calling Rebar from, then it works fine, but I don't want to keep having to drag that around.  What should I really be doing?
>
> Thanks,
> Lee
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list