prefix os 마다 다르게 설정
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.eactive.httpmockserver.script;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.mdkt.compiler.CompilationException;
|
||||
import org.mdkt.compiler.CompiledCode;
|
||||
import org.mdkt.compiler.DynamicClassLoader;
|
||||
@@ -38,7 +39,8 @@ public class ScriptLoader{
|
||||
String uri = url.toURI().toString();
|
||||
System.out.println(uri);
|
||||
if(StringUtils.contains(uri, "jar:file:" )) {
|
||||
String jarPath = StringUtils.substringBetween(uri, "jar:file:/", ".jar!") + ".jar";
|
||||
String prefix = SystemUtils.IS_OS_WINDOWS ? "jar:file:/" : "jar:file:";
|
||||
String jarPath = StringUtils.substringBetween(uri, prefix, ".jar!") + ".jar";
|
||||
System.out.println("jarPath => " + jarPath);
|
||||
|
||||
if(StringUtils.contains(uri, "BOOT-INF" )) {
|
||||
|
||||
Reference in New Issue
Block a user