application:load(App, modules)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

application:load(App, modules)

Fisher
Hi, all !

Here is my app file
{application, test, [
    {description, "an test."},
    {vsn, "0.1.0"},
    {modules, []},
    {registered, []},
    {applications, [kerne, stdlib]}
]}

note that: {modules, []}


i compile it use two different ways, and the result(application:get_key/2) comes:
-------------------------------------------------------------------------------------------
compile method                             application:get_key(test, modules)
-------------------------------------------------------------------------------------------
erlang:mk                                      {ok, [test01, test02, test03, ops, test01]}
-------------------------------------------------------------------------------------------
Emakefile                                      {ok, []}
-------------------------------------------------------------------------------------------

and Emakefile is like this:
{'src/*', [debug_info, {i, "src"}, {i, "include"}, {outdir, "ebin"}]}.

which command in erlang:mk makes the result different? any one can help?

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: application:load(App, modules)

Martin Karlsson-2
Hi Fisher,
> which command in erlang:mk makes the result different? any one can help?

erlang.mk finds all your modules (looking in the ebin directory) and
"compiles" the *.app.src file including these modules.

Depending on version of erlang.mk it is done in different targets. In
the latest version in git it is done in the app-build target on L311

Cheers,
Martin
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: application:load(App, modules)

Fisher

Your information is helpfull, thank you !





At 2015-04-10 12:13:45, "Martin Karlsson" <[hidden email]> wrote: >Hi Fisher, >> which command in erlang:mk makes the result different? any one can help? > >erlang.mk finds all your modules (looking in the ebin directory) and >"compiles" the *.app.src file including these modules. > >Depending on version of erlang.mk it is done in different targets. In >the latest version in git it is done in the app-build target on L311 > >Cheers, >Martin

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions