0

Move to Master #8

Merged
Minenash merged 24 commits from gradle into master 2019-02-08 16:31:21 +00:00
Showing only changes of commit 47e0796eff - Show all commits

View File

@ -240,18 +240,20 @@ public final class ModuleLoader implements CoreModule
{ {
try try
{ {
InputStream infoFile = null;
if (VersionHelper.isCompatible(VersionHelper.create(5, 0, 0, 5), module.getClass())) {
String basePath = "plugins/ModuleLoader/classes/" + module.getClass().getName().replace(".", "/"); String basePath = "plugins/ModuleLoader/classes/" + module.getClass().getName().replace(".", "/");
InputStream file;
try { try {
file = new FileInputStream( infoFile = new FileInputStream(
new File(basePath.substring(0, basePath.lastIndexOf('/')+1) + "module.info")); new File(basePath.substring(0, basePath.lastIndexOf('/')+1) + "module.info"));
} }
catch(Exception e) { catch(Exception e) {
file = null; infoFile = null;
} }
}
ModuleInfo info = new ModuleInfo(file, module); ModuleInfo info = new ModuleInfo(infoFile, module);
moduleInfos.put(module, info); moduleInfos.put(module, info);