Reputation: 299
I am complete Erlang novice, so this question might be complete nonsense.
I am trying to create a plugin for RabbitMQ, which I have to write in Erlang. To do this, I am using Erlide in Eclipse, and I am experimenting with the RabbitMQ Metronome example project.
I have managed to get it to compile and generate some .BEAM files. However, to get it into RabbitMQ, I need to generate an Erlang archive (.ez), which is a zip file containing the .BEAM files plus a .app file.
My problem is that I don't know how to generate the .app file. I tried just creating a file called "RabbitMQMetronome.app" in the "ebin" directory, but when I try to edit it, Eclipse warns that it is a "derived" file. This may be a red herring, as any other file in that directory gives the same warning.
So, my question is, how should I create the .app file using Erlide?
Thanks,
Carl
Upvotes: 1
Views: 89
Reputation: 941
The .app file is generally created from an .app.src file in src/. Most build tools do that, and so is erlide. So edit that one instead, and the .app file will be created when building.
A side note: For production code, I would not rely on erlide's build tools, but use rebar or erlang.mk or something else more battle-tested. These tools are more reliable (and also generate the .app file as above)
Upvotes: 1