debug: print classpath entries to identify _1._20._1.forge module source
This commit is contained in:
+9
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user