<!DOCTYPE html><html><head><title></title><style type="text/css">#fastmail-quoted P{margin-top:0px;margin-bottom:0px;}
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Tommy, there is not support for include filters per application in relx.<br></div><div><br></div><div>I don't have a good answer for how to make this work at this time besides a hack overlay that involves hard coding versions like:<br></div><div><br></div><div>{copy, "_build/default/simple_bridge/etc", "lib/simple_bridge-X.Y.Z/etc"}<br></div><div><br></div><div>We want to have feature parity with reltool but have never prioritized it as a whole, instead only adding such features as they are requested. <br></div><div><br></div><div>But I also find this to be a questionable feature since it means application authors can expect the user to have to use this feature to properly use their app in a release when they should just put the additional files in the priv directory.<br></div><div><br></div><div>Though I suppose it is possible that you'd have multiple directories under priv and want to exclude specific ones in a release, so I take it back on being questionable, but it might be best as a way to only limit what in priv is kept. <br></div><div><br></div><div>I also just took a look at what is in simple_bridge/etc and it is a .config file. Is the application loading this file at run time? How is the user expected to modify the values if that is the case? Defaults should be kept in simple_bridge.app's env list and the user building the release can override them with their own sys.config.<br></div><div><br></div><div>Tristan<br></div><div><br></div><div><br></div><div>On Mon, Apr 8, 2019, at 08:56, Mattsson, Tommy wrote:<br></div><blockquote type="cite" id="fastmail-quoted"><div dir="ltr" style="font-size:12pt;color:rgb(0, 0, 0);font-family:Calibri, Helvetica, sans-serif;" id="fastmail-quoted-divtagdefaultwrapper"><p style="margin-top:0px;margin-bottom:0px;">Hello.<br></p><p style="margin-top:0px;margin-bottom:0px;">I am trying to build a release using rebar3. The release is supposed to include nitrogen which has some extra directories that needs to be included. For example the dependency simple_bridge has a directory named "etc"
that needs to end up in the release. <br></p><p style="margin-top:0px;margin-bottom:0px;"></p><div>When using reltool for creatiing the release it is possible to to add this in the a config file<br></div><div> <br></div><p></p><pre style="background-color:rgb(43, 43, 43);color:rgb(169, 183, 198);font-family:"DejaVu Sans Mono";font-size:9pt;"><div>{app, simple_bridge, [{incl_cond, include},<br></div><div> {mod, yaws_simple_bridge_sup, [{incl_cond, exclude}]},<br></div><div> {incl_app_filters, [<span style="color:rgb(106, 135, 89)" class="colour">"^include"</span>, <span style="color:rgb(106, 135, 89)" class="colour">"^priv"</span>, <span style="color:rgb(106, 135, 89)" class="colour">"^ebin"</span>, <span style="color:rgb(106, 135, 89)" class="colour">"^etc"</span>]},<br></div></pre><div>But when using rebar3 and relx I can't find any options for relx that acts in a similar way as the incl_app_filters option does for reltool.<br></div><div> Am I missing something or does the functionality just not exist for relx? If it doesn't exist, does anyone have an idea of if and/or when it will be added? <br></div><p><br></p><p style="margin-top:0px;margin-bottom:0px;"><br></p><p style="margin-top:0px;margin-bottom:0px;">Best regards,<br></p><p style="margin-top:0px;margin-bottom:0px;">Tommy<br></p></div><div>_______________________________________________<br></div><div>erlang-questions mailing list<br></div><div>erlang-questions@erlang.org<br></div><div>http://erlang.org/mailman/listinfo/erlang-questions<br></div><div><br></div></blockquote><div><br></div></body></html>