class path seperator os 마다 다르게 설정

This commit is contained in:
yunjy
2022-08-22 15:45:49 +09:00
parent 618cbd9087
commit f05b302d56
2 changed files with 2 additions and 14 deletions
@@ -40,6 +40,7 @@ public class ScriptLoader{
System.out.println(uri);
if(StringUtils.contains(uri, "jar:file:" )) {
String prefix = SystemUtils.IS_OS_WINDOWS ? "jar:file:/" : "jar:file:";
String jarPath = StringUtils.substringBetween(uri, prefix, ".jar!") + ".jar";
System.out.println("jarPath => " + jarPath);
@@ -73,7 +74,7 @@ public class ScriptLoader{
bos.close();
}
jar.close();
classPath = memoryWorkingPath+"/BOOT-INF/classes;"+memoryWorkingPath+"/BOOT-INF/lib/*;";
classPath = memoryWorkingPath+"/BOOT-INF/classes"+System.getProperty("path.separator")+memoryWorkingPath+"/BOOT-INF/lib/*"+System.getProperty("path.separator");
}else {
classPath = jarPath;
}