From 2478ad35858bdbaf3997b627df8fef58a0fd6461 Mon Sep 17 00:00:00 2001 From: GYCHEN Date: Fri, 5 Jan 2024 20:25:49 +0800 Subject: [PATCH] fix jettyStart throws exception if using jetty-env.xml --- .../main/groovy/org/akhikhl/gretty/JettyConfigurerImpl.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gretty-runner-jetty11/src/main/groovy/org/akhikhl/gretty/JettyConfigurerImpl.groovy b/libs/gretty-runner-jetty11/src/main/groovy/org/akhikhl/gretty/JettyConfigurerImpl.groovy index 13cf422b..45f93ce3 100644 --- a/libs/gretty-runner-jetty11/src/main/groovy/org/akhikhl/gretty/JettyConfigurerImpl.groovy +++ b/libs/gretty-runner-jetty11/src/main/groovy/org/akhikhl/gretty/JettyConfigurerImpl.groovy @@ -250,7 +250,7 @@ class JettyConfigurerImpl implements JettyConfigurer { URL findResourceURL(baseResource, String path) { Resource res = baseResource.addPath(path) if(res.exists()) - return res.getURL() + return res.getURI().toURL() null }