mirror of
https://github.com/ME1312/SubServers-2.git
synced 2025-02-14 02:31:21 +01:00
Include dependency version in file name
This commit is contained in:
parent
651c61312e
commit
16480af130
@ -22,7 +22,7 @@ public class JNA {
|
||||
boolean announced = false;
|
||||
UniversalFile library = new UniversalFile(SubAPI.getInstance().getInternals().dir, "SubServers:Cache:Libraries");
|
||||
library.mkdirs();
|
||||
UniversalFile jna = new UniversalFile(library, "JNA.jar");
|
||||
UniversalFile jna = new UniversalFile(library, "jna-" + JNA_VERSION + ".jar");
|
||||
if (!jna.exists()) {
|
||||
jna.getParentFile().mkdirs();
|
||||
if (!jna.exists()) {
|
||||
@ -36,7 +36,7 @@ public class JNA {
|
||||
announced = true;
|
||||
}
|
||||
}
|
||||
UniversalFile platform = new UniversalFile(library, "JNA-Platform.jar");
|
||||
UniversalFile platform = new UniversalFile(library, "jna-platform-" + JNA_VERSION + ".jar");
|
||||
if (!platform.exists()) {
|
||||
platform.getParentFile().mkdirs();
|
||||
if (!platform.exists()) {
|
||||
|
@ -25,7 +25,7 @@ public class JNA {
|
||||
Logger log = new Logger("JNA");
|
||||
UniversalFile library = new UniversalFile(Galaxi.getInstance().getRuntimeDirectory(), "Cache:Libraries");
|
||||
library.mkdirs();
|
||||
UniversalFile jna = new UniversalFile(library, "JNA.jar");
|
||||
UniversalFile jna = new UniversalFile(library, "jna-" + JNA_VERSION + ".jar");
|
||||
if (!jna.exists()) {
|
||||
jna.getParentFile().mkdirs();
|
||||
if (!jna.exists()) {
|
||||
@ -39,7 +39,7 @@ public class JNA {
|
||||
}
|
||||
}
|
||||
}
|
||||
UniversalFile platform = new UniversalFile(library, "JNA-Platform.jar");
|
||||
UniversalFile platform = new UniversalFile(library, "jna-platform-" + JNA_VERSION + ".jar");
|
||||
if (!platform.exists()) {
|
||||
platform.getParentFile().mkdirs();
|
||||
if (!platform.exists()) {
|
||||
|
Loading…
Reference in New Issue
Block a user