mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 04:49:12 +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())
|
||||
{
|
||||
String token = tokenizer.nextToken().trim();
|
||||
Resource resource= _context.newResource(token);
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Path resource=" + resource);
|
||||
|
||||
if(token.endsWith("*"))
|
||||
{
|
||||
if(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);
|
||||
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);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Resolve file path if possible
|
||||
|
Loading…
x
Reference in New Issue
Block a user