Branch: Tag:

2018-04-18

2018-04-18 22:37:54 by Pontus Östlund <ponost@roxen.com>

Hot reload: Support a list of comma separated modules.

It's also possible to specify for which configuration the module/s should be hot reloaded.

--module-hot-reload=mod1[,mod2[,mod3[, ...]]]
--module-hot-reload-conf=conf1[,conf2[,conf3[ ...]]]

834:      //! @ignore   private class ModuleChangedMonitor {} - void module_hot_reload(RoxenModule mod){} + void register_module_hot_reload(RoxenModule mod){}   void unregister_module_hot_reload(RoxenModule mod){}   //! @endignore   
4854: Inside #if defined(MODULE_HOT_RELOAD)
     #ifdef MODULE_HOT_RELOAD    array(string) hot_mods = roxen->query_hot_reload_modules(); +  array(string) hot_confs = roxen->query_hot_reload_modules_conf();   #endif       foreach( ({this_object()})+indices( otomod ), RoxenModule mod ) {
4867:    }      #ifdef MODULE_HOT_RELOAD -  if (has_index(mod, "is_module")) { +  if (has_index(mod, "is_module") && +  (!hot_confs || has_value(hot_confs, name))) +  {    sscanf (mod->module_local_id(), "%s#", string mod_name);       if (has_value(hot_mods, mod_name)) {