0

Added Descriptor Files and redid /modules [list] #7

Merged
Minenash merged 4 commits from descriptor into gradle 2019-01-08 14:42:38 +00:00
Showing only changes of commit 47e0796eff - Show all commits

View File

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