ever-been / everBeen

EverBEEN is a generic benchmarking environment focused on platform-independent middleware benchmarking.
www.everbeen.cz
GNU Lesser General Public License v3.0
7 stars 3 forks source link

Revise the way the '-dc' option is implemented #205

Open radek-macha opened 11 years ago

radek-macha commented 11 years ago

Right now, it uses ServiceLoader, which depends on a file in META-INF. Given that multiple files with the same name (full classpath of the provided interface) ultimately get bundled with the maven-assembly-plugin, the file got overwritten several time sover.

For that reason, the -dc option is now hacked to use a list hardcoded in the node bundle, which is wrong - it results in an exception after the -dc option is invoked if EverBEEN has been re-bundled to use a different implementation of Storage, for example.

Either maven-assembly-plugin needs to be told to append the file rather than overwrite it, or the way BeenServiceConfiguration is loaded needs to be changed not to use ServiceLoader.