mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 12:59:30 +00:00
Merge pull request #3495 from eclipse/jetty-9.4.x-3489-extraclasspath-splat-windows
Issue #3489 - Allowing JAR directory references on Windows
This commit is contained in:
commit
d0a5ba8d5a
@ -279,20 +279,29 @@ public class WebAppClassLoader extends URLClassLoader
|
|||||||
while (tokenizer.hasMoreTokens())
|
while (tokenizer.hasMoreTokens())
|
||||||
{
|
{
|
||||||
String token = tokenizer.nextToken().trim();
|
String token = tokenizer.nextToken().trim();
|
||||||
Resource resource= _context.newResource(token);
|
|
||||||
if (LOG.isDebugEnabled())
|
|
||||||
LOG.debug("Path resource=" + resource);
|
|
||||||
|
|
||||||
if(token.endsWith("*"))
|
if(token.endsWith("*"))
|
||||||
{
|
{
|
||||||
if(token.length() > 1)
|
if(token.length() > 1)
|
||||||
{
|
{
|
||||||
token = token.substring(0, token.length() - 1);
|
token = token.substring(0, token.length() - 1);
|
||||||
|
Resource resource= _context.newResource(token);
|
||||||
|
if (LOG.isDebugEnabled())
|
||||||
|
LOG.debug("Glob Path resource=" + resource);
|
||||||
resource= _context.newResource(token);
|
resource= _context.newResource(token);
|
||||||
addJars(resource);
|
addJars(resource);
|
||||||
}
|
}
|
||||||
} else if (resource.isDirectory() && resource instanceof ResourceCollection)
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Resource resource= _context.newResource(token);
|
||||||
|
if (LOG.isDebugEnabled())
|
||||||
|
LOG.debug("Path resource=" + resource);
|
||||||
|
|
||||||
|
if (resource.isDirectory() && resource instanceof ResourceCollection)
|
||||||
|
{
|
||||||
addClassPath(resource);
|
addClassPath(resource);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Resolve file path if possible
|
// Resolve file path if possible
|
||||||
|
Loading…
x
Reference in New Issue
Block a user