[erlang-questions] Escript and multiple OTP application archives (*.ez) or handling dependencies in an escript

Dave Smith dizzyd@REDACTED
Mon Sep 19 17:20:16 CEST 2011


FWIW, basho_bench does distribute multiple apps in the same .ez. You
can see the config for rebar:

https://github.com/basho/basho_bench/blob/master/rebar.config

has a {escript_incl_apps, [...]} config item. It's a bit of a hack,
but it works. :)

D.

2011/9/19 Håkan Mattsson <hm@REDACTED>:
> On Mon, Sep 19, 2011 at 4:56 PM, Eric Merritt <ericbmerritt@REDACTED> wrote:
>> Hey guys,
>>
>>  I am looking at escript and wondering how to go about distributing
>> more then one OTP app in an escript. That is, a project and it's
>> dependencies.
>>
>>  From the documentation and tests on my part that validate that it
>> looks like escript:create can have one of an escript or a code archive
>> (one and only one) as its body. From reading the docs on code archives
>> an archive may contain one and only one OTP Application and be named
>> for that OTP Application.
>
> No, you can have several applications in an escript archive.
> It is just the .ez files that are limited to contain one application.
>
> /Håkan
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list