Include dependency version in file name

This commit is contained in:
ME1312 2019-01-09 17:00:17 -05:00
parent 651c61312e
commit 16480af130
No known key found for this signature in database
GPG Key ID: FEFFE2F698E88FA8
2 changed files with 4 additions and 4 deletions

View File

@ -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()) {

View File

@ -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()) {