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.

[1]:
https://github.com/eclipse/jetty.project/blob/master/jetty-util/src/main/java/org/eclipse/jetty/util/resource/ResourceCollection.java
[2]: https://bugs.eclipse.org/bugs/show_bug.cgi?id=459283




On 6 February 2015 at 05:07, Greg Wilkins <[email protected]> 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 <https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Jetty>
> cheers
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to