Hi<br><br><div class="gmail_quote">2013/3/26 Tuncer Ayaz <span dir="ltr"><<a href="mailto:tuncer.ayaz@gmail.com" target="_blank">tuncer.ayaz@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Mar 26, 2013 at 11:13 AM, Fredrik wrote:<br>
<br>
> Since we are on the subject,<br>
> We have a ticket about this but we were planning to solve this<br>
> matter in reltool, i.e without adding the .app file in the<br>
> applications that are missing them.<br>
<br></div></blockquote><div><br></div><div>Just to be clear, this ticket is about allowing reltool to include non-erlang applications, like erl_interface and jinterface. I assumed that Alisdair's patch was about this - if not, please let me know.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
</div>How exactly?</blockquote><div><br></div><div>Well, this isn't really decided yet, but a fair guess should be to allow directories in lib_dirs, that do not contain a sub-directory named ebin, to be seen as application directories. Possibly with the aid of some configuration option to reltool.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Do you plan for reltool to derive app name and version<br>
from the directory name </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> and the modules from ebin/*.beam?</blockquote><div><br></div><div><div>That is already the case when no .app file is found. However, the cases I talk about here are mainly when there are no beam files - i.e. non-erlang applications.</div>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Can that<br>
cover scenarios like an application requiring mnesia?</blockquote><div><br></div><div>Not sure if I understand what you mean... If you need to specify dependencies like the 'applications' entry in the .app file you still need to provide the .app file.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> What about<br>
application environment variables?<br></blockquote><div><br></div><div>Only needed if you write an erlang application, and then you should still add your .app file.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Does anyone have a good guess why projects skip writing/generating the<br>
.app file?<br></blockquote><div><br></div><div>Not in general, but for the cases of erl_interface and jinterface it is because these are non-erlang applications so the .app file would never be used.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im HOEnZb"></div></blockquote></div><br><div>Regards</div><div>/siri</div>