Die Migration der Bereiche "Docker Registry" und "Artifiacts" ist fast abgeschlossen. Die letzten Daten werden im Laufe des heutigen Abend (05.08.2021) noch vollständig hochgeladen. Das Anlegen neuer Images und Artifacts funktioniert bereits wieder.

Commit e11a56eb authored by Jean-Marc Ronck's avatar Jean-Marc Ronck
Browse files

Added check to see what the problem with Linux is.

parent d0fe7aa4
Pipeline #73328 failed with stage
in 29 seconds
package de.monticore.lang.monticar.visualization.emam.resources;
import java.io.IOException;
import java.io.InputStream;
public interface ResourcesService {
void addResource(String id, String resource);
String getResource(String id);
InputStream getResourceAsStream(String id) throws IOException;
InputStream getResourceAsStream(String id);
......@@ -5,9 +5,7 @@ import de.monticore.lang.monticar.visualization.emam.application.ApplicationCont
import javax.inject.Inject;
import javax.inject.Singleton;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
......@@ -47,10 +45,10 @@ public class ResourcesServiceImpl implements ResourcesService, ApplicationContri
public InputStream getResourceAsStream(String id) throws IOException {
public InputStream getResourceAsStream(String id) {
String resource = this.resources.get(id);
URL url = ClassLoader.getSystemResource(resource);
return url.openStream();
return ResourcesServiceImpl.class.getClassLoader().getResourceAsStream(resource);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment