[erlang-questions] starting an app with an app.config file

Andrew Gopienko gopienko@REDACTED
Mon Oct 15 10:52:55 CEST 2012


Just read your config file and set env with application:load before
application:start


2012/10/15 Roberto Ostinelli <roberto@REDACTED>

> What has this to do with my question?
>
> My question is how can I use the same app.config file when I start an
> application from Common Tests.
>
>
>
> On Sunday, October 14, 2012, Andrew Gopienko wrote:
>
>> From my eunit tests
>>
>>     SaslSpec = [{errlog_type, error}],
>>     case application:load({application,sasl,SaslSpec}) of
>>   {error,{already_loaded,_}} -> ok;
>>   ok ->
>>       ok = application:start(sasl),
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121015/eebd873c/attachment.htm>


More information about the erlang-questions mailing list