This commit is contained in:
Lucio Lelii 2017-10-05 18:28:49 +00:00
parent d564ba605e
commit 2b4cb4818b
1 changed files with 5 additions and 3 deletions

View File

@ -144,9 +144,11 @@ public final class AlgorithmUpdater {
try{
String realJarName =filename.getFileName().toString().replaceFirst("_interface", "");
log.debug("real jar name is {} ",realJarName);
if (dir.resolve(realJarName).toFile().exists()){
realjarURL = dir.resolve(realJarName).toFile().toURI().toURL();
log.debug("real jar url is {} ",realjarURL);
method.invoke(loader, new URL[] {realjarURL});
}
}catch(Throwable ipe){
log.warn("only {} have been found",filename, ipe);
}