class path seperator os 마다 다르게 설정
This commit is contained in:
@@ -40,6 +40,7 @@ public class ScriptLoader{
|
|||||||
System.out.println(uri);
|
System.out.println(uri);
|
||||||
if(StringUtils.contains(uri, "jar:file:" )) {
|
if(StringUtils.contains(uri, "jar:file:" )) {
|
||||||
String prefix = SystemUtils.IS_OS_WINDOWS ? "jar:file:/" : "jar:file:";
|
String prefix = SystemUtils.IS_OS_WINDOWS ? "jar:file:/" : "jar:file:";
|
||||||
|
|
||||||
String jarPath = StringUtils.substringBetween(uri, prefix, ".jar!") + ".jar";
|
String jarPath = StringUtils.substringBetween(uri, prefix, ".jar!") + ".jar";
|
||||||
System.out.println("jarPath => " + jarPath);
|
System.out.println("jarPath => " + jarPath);
|
||||||
|
|
||||||
@@ -73,7 +74,7 @@ public class ScriptLoader{
|
|||||||
bos.close();
|
bos.close();
|
||||||
}
|
}
|
||||||
jar.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 {
|
}else {
|
||||||
classPath = jarPath;
|
classPath = jarPath;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
package com.eactive.httpmockserver;
|
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
|
||||||
|
|
||||||
@SpringBootTest
|
|
||||||
class HttpmockserverApplicationTests {
|
|
||||||
|
|
||||||
@Test
|
|
||||||
void contextLoads() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user