Filter non-exists jar

This commit is contained in:
khanhduytran0 2020-09-18 13:09:31 +07:00
parent 09dc4c39d0
commit ce6660c2a6

View file

@ -351,6 +351,10 @@ public final class Tools
libStr.append(getPatchedFile(version));
}
for (String perJar : classpath) {
if (!new File(perJar).exists()) {
System.out.println("ClassPathGen: ignored non-exists file: " + perJar);
continue;
}
libStr.append((isClientFirst ? ":" : "") + perJar + (!isClientFirst ? ":" : ""));
}
if (!isClientFirst) {