Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] ResourceCollection with jar files

This is the beggining javadoc of ResourceCollection:

* A collection of resources (dirs).
* Allows webapps to have multiple (static) sources. * The first resource in the collection is the main resource. * If a resource is not found in the main resource, it looks it up in * the order the resources were constructed.

There is also multiple checks for existence of directories.

if(!_resources[i].exists() || !_resources[i].isDirectory())
throw new IllegalArgumentException(_resources[i] + " is not an existing directory.");

Filed an issue [2] as well.





On 6 February 2015 at 05:07, Greg Wilkins <gregw@xxxxxxxxxxx> wrote:
Why is ResourceCollection limited to just directories?  The API certainly supports collections of Resources, so why can you not collect JarResources?

Have you tried?  If you get an error, make a reproducible test case and Open a Bugzilla
cheers



Back to the top