[erlang-questions] Rebar issues

Lee Sylvester lee.sylvester@REDACTED
Thu Mar 14 20:54:15 CET 2013


Thank you very much :-)

Lee


On 14 Mar 2013, at 19:43, Zsolt Czinkos <czinkos@REDACTED> wrote:

> Hi Lee,
> 
> I've upgraded erlang/otp from R16A to R16B and everything works fine
> without modifying rebar.config.
> 
> zsolt
> 
> On Thu, Mar 14, 2013 at 4:26 PM, Zsolt Czinkos <czinkos@REDACTED> wrote:
>> 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 <lee.sylvester@REDACTED> 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
>>> erlang-questions@REDACTED
>>> http://erlang.org/mailman/listinfo/erlang-questions
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list