Fixed loading plugins: sometimes failed file was not correctly extracted
This commit is contained in:
@ -6,7 +6,6 @@ import org.springframework.core.io.Resource;
|
||||
import org.springframework.core.io.ResourceLoader;
|
||||
import org.springframework.core.io.UrlResource;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.DefaultPropertiesPersister;
|
||||
|
||||
import javax.inject.Singleton;
|
||||
import java.net.MalformedURLException;
|
||||
@ -59,9 +58,6 @@ public class LabelProvider {
|
||||
labels.setFallbackToSystemLocale(false);
|
||||
labels.setUseCodeAsDefaultMessage(true);
|
||||
pluginLabels.setParentMessageSource(labels);
|
||||
pluginLabels.setPropertiesPersister(new DefaultPropertiesPersister() {
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
public static void updatePluginResources(final Path propertyFile) {
|
||||
@ -83,9 +79,7 @@ public class LabelProvider {
|
||||
return Thread.currentThread().getContextClassLoader();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static void refresh() {
|
||||
pluginLabels.clearCache();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user