Fix logs and openZipFile
This commit is contained in:
parent
450eb83c13
commit
fdc1394493
|
@ -40,8 +40,7 @@ allprojects {
|
|||
ext {
|
||||
lwjglVersion = '3.3.1'
|
||||
imguiVersion = '1.86.4'
|
||||
slf4jVersion = '1.7.36'
|
||||
logbackVersion = '1.2.11'
|
||||
logbackVersion = '1.3.0-alpha15'
|
||||
jfCommonsVersion = '2022.6.27+12-28-9'
|
||||
jgitVersion = '6.1.0.202203080745-r'
|
||||
flavorProp = project.hasProperty('flavor') ? project.getProperty('flavor') : 'custom'
|
||||
|
@ -65,7 +64,6 @@ if (flavor == 'custom') {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation "org.slf4j:slf4j-api:$slf4jVersion"
|
||||
implementation "ch.qos.logback:logback-classic:$logbackVersion"
|
||||
implementation "io.gitlab.jfronny:commons:$jfCommonsVersion"
|
||||
implementation "io.gitlab.jfronny:commons-gson:$jfCommonsVersion"
|
||||
|
|
|
@ -18,7 +18,6 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation "org.slf4j:slf4j-api:${rootProject.slf4jVersion}"
|
||||
implementation "ch.qos.logback:logback-classic:${rootProject.logbackVersion}"
|
||||
implementation "io.gitlab.jfronny:commons:${rootProject.jfCommonsVersion}"
|
||||
implementation "io.gitlab.jfronny:commons-gson:${rootProject.jfCommonsVersion}"
|
||||
|
|
|
@ -261,7 +261,7 @@ public class Utils {
|
|||
private static final Map<Path, MultiAccessFileSystem> zipFsCache = new HashMap<>();
|
||||
public static FileSystem openZipFile(Path zip, boolean create) throws IOException, URISyntaxException {
|
||||
synchronized (zipFsCache) {
|
||||
if (!zipFsCache.containsKey(zip) || !zipFsCache.get(zip).isClosed()) {
|
||||
if (!zipFsCache.containsKey(zip) || zipFsCache.get(zip).isClosed()) {
|
||||
URI fileUri = zip.toUri();
|
||||
zipFsCache.put(zip, MultiAccessFileSystem.create(new URI("jar:" + fileUri.getScheme(), fileUri.getPath(), null), create ? Map.of("create", "true") : Map.of(), WrapperStrap.SYSTEM_LOADER));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue