debug: print classpath entries to identify _1._20._1.forge module source

This commit is contained in:
SashegDev
2026-07-14 11:02:28 +00:00
parent 9a853a6134
commit 929d5a4ad6
@@ -85,6 +85,15 @@ public class LaunchCommandBuilder {
String cpFile = writeClasspathFile(classpath);
// DEBUG: print classpath entries to identify split-package sources
String sep = System.getProperty("os.name").toLowerCase().contains("win") ? ";" : ":";
System.out.println(ZAnsi.cyan(" === CLASSPATH ENTRIES (" + classpath.split(sep.replace("\\","\\\\")).length + " jars) ==="));
for (String entry : classpath.split(sep.replace("\\","\\\\"))) {
String fileName = entry.contains("/") ? entry.substring(entry.lastIndexOf('/') + 1) : entry.substring(entry.lastIndexOf('\\') + 1);
System.out.println(ZAnsi.cyan(" CP: " + fileName));
}
System.out.println(ZAnsi.cyan(" === END CLASSPATH ==="));
// Build variable map for placeholder substitution
Map<String, String> vars = buildVariableMap(options);
vars.put("classpath", cpFile);