I have hit a problem trying to configure the clustering plugin: the configuration file must be inside the JAR. What we need to do is add/remove nodes from a centralized console and move the configuration files using rsync. Normally, I’d copy the configuration file under conf and read it from there, but the clustering plugin only looks inside the classpath which doesn’t include conf.
Trying to fix this, I modified PluginManager to add the conf folder to the classpath for all plugins. But then I realized, most plugins can read conf just fine without this modification, so my solution could be a bit of an overkill. The clustering plugin, on the other hand, already uses a custom class loader. So that would be a better spot to add the conf folder to the classpath. But right now, I am using OF 3.7.1 and the clustering plugin that only comes as a JAR - I can make the change for 3.7.2, but it won’t fix the problem for me just yet.
I feel modifying the clustering plugin is the right solution, but I’d like some opinions on that.