mirror of https://github.com/rusefi/rusefi.git
only: IO_PROPERTIES bugfix
This commit is contained in:
parent
fd02046ae2
commit
f4ca8f7b12
|
@ -18,6 +18,7 @@ public class ConnectionAndMeta {
|
||||||
|
|
||||||
private static final int BUFFER_SIZE = 32 * 1024;
|
private static final int BUFFER_SIZE = 32 * 1024;
|
||||||
public static final int CENTUM = 100;
|
public static final int CENTUM = 100;
|
||||||
|
public static final String IO_PROPERTIES = "/shared_io.properties";
|
||||||
private final String zipFileName;
|
private final String zipFileName;
|
||||||
private HttpsURLConnection httpConnection;
|
private HttpsURLConnection httpConnection;
|
||||||
private long completeFileSize;
|
private long completeFileSize;
|
||||||
|
@ -30,7 +31,9 @@ public class ConnectionAndMeta {
|
||||||
public static String getBaseUrl() {
|
public static String getBaseUrl() {
|
||||||
Properties props = new Properties();
|
Properties props = new Properties();
|
||||||
try {
|
try {
|
||||||
props.load(ConnectionAndMeta.class.getResourceAsStream("shared_io.properties"));
|
InputStream stream = ConnectionAndMeta.class.getResourceAsStream(IO_PROPERTIES);
|
||||||
|
Objects.requireNonNull(stream, "Error reading " + IO_PROPERTIES);
|
||||||
|
props.load(stream);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue