Buildscript cleanup and organization.

Updated to use newer libraries that reduce the command line arguments needed to run the game.
Fix issues in the SecureModule's classloader that caused resources to not be seen when they are on parent module layers.
This commit is contained in:
LexManos committed 2023-10-24 16:24:13 -07:00
1 parent 72e8ae252c
commit e34090c809
23 files changed
+281 -458

No files matched your search

@@ -21,25 +21,14 @@ import java.io.File;
import java.text.SimpleDateFormat;
import java.util.*;
public class CrashReportExtender
{
public static void extendSystemReport(final SystemReport systemReport)
{
for (final ISystemReportExtender call : CrashReportCallables.allCrashCallables())
{
public class CrashReportExtender {
public static void extendSystemReport(final SystemReport systemReport) {
for (final ISystemReportExtender call : CrashReportCallables.allCrashCallables()) {
if (call.isActive())
{
systemReport.setDetail(call.getLabel(), call);
}
}
}
public static void addCrashReportHeader(StringBuilder stringbuilder, CrashReport crashReport)
{
net.minecraftforge.forge.snapshots.ForgeSnapshotsMod.addCrashReportHeader(stringbuilder, crashReport);
}
public static String generateEnhancedStackTrace(final Throwable throwable) {
return generateEnhancedStackTrace(throwable, true);
}
@@ -55,7 +44,6 @@ public class CrashReportExtender
return header ? s : s.substring(s.indexOf(Strings.LINE_SEPARATOR));
}
public static File dumpModLoadingCrashReport(final Logger logger, final LoadingFailedException error, final File topLevelDir) {
final CrashReport crashReport = CrashReport.forThrowable(new Exception("Mod Loading has failed"), "Mod loading error has occurred");
error.getErrors().forEach(mle -> {