Исправление загрузчика ресурсов (#7)

Исправлен путь к внутренним ресурсам
This commit is contained in:
Nikolay Petrov 2019-10-12 18:03:08 +03:00 committed by Victor Melnik
parent 69e1a562fc
commit b82596cd87

View File

@ -10,7 +10,7 @@ public final class SourceLoader {
private SourceLoader() { } private SourceLoader() { }
public static String readSource(String name) throws IOException { public static String readSource(String name) throws IOException {
InputStream is = SourceLoader.class.getResourceAsStream(name); InputStream is = SourceLoader.class.getResourceAsStream("/" + name);
if (is != null) return readAndCloseStream(is); if (is != null) return readAndCloseStream(is);
is = new FileInputStream(name); is = new FileInputStream(name);