Merge remote-tracking branch 'origin/jetty-7' into jetty-8
This commit is contained in:
commit
6b3cb20720
|
@ -217,8 +217,7 @@ public abstract class Resource implements ResourceFactory
|
||||||
{
|
{
|
||||||
URL url=null;
|
URL url=null;
|
||||||
// Try to format as a URL?
|
// Try to format as a URL?
|
||||||
ClassLoader
|
ClassLoader loader=Thread.currentThread().getContextClassLoader();
|
||||||
loader=Thread.currentThread().getContextClassLoader();
|
|
||||||
if (loader!=null)
|
if (loader!=null)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -250,7 +249,7 @@ public abstract class Resource implements ResourceFactory
|
||||||
{
|
{
|
||||||
url=ClassLoader.getSystemResource(resource);
|
url=ClassLoader.getSystemResource(resource);
|
||||||
if (url==null && resource.startsWith("/"))
|
if (url==null && resource.startsWith("/"))
|
||||||
url=loader.getResource(resource.substring(1));
|
url=ClassLoader.getSystemResource(resource.substring(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (url==null)
|
if (url==null)
|
||||||
|
|
Loading…
Reference in New Issue