Fixed properties retrieving

This commit is contained in:
Luca Frosini 2020-09-30 13:57:33 +02:00
parent 97a7036929
commit 42612880e4
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package org.gcube.vremanagement.executor.plugin;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
@ -51,7 +52,7 @@ public abstract class Plugin implements PluginDefinition {
properties = new Properties();
try {
InputStream input = getClass().getClassLoader().getResourceAsStream(PLUGIN_PROPERTIES_FILENAME);
InputStream input = getClass().getClassLoader().getResourceAsStream("META-INF" + File.separator + PLUGIN_PROPERTIES_FILENAME);
properties.load(input);
} catch(IOException e) {
throw new RuntimeException(e);