Good morning,

is it please possible to serve 2 different dirs with static context (PNG
files) under same contextPath?

I have tried the following XML file but only the last dir is being served
when a PNG-file is requested under "/drawable-mdpi" URL:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN"
    "http://www.eclipse.org/jetty/configure_9_0.dtd";>
<Configure class="org.eclipse.jetty.server.handler.ContextHandler">
    <Set name="contextPath">/drawable-mdpi</Set>
    <Set name="handler">
        <New class="org.eclipse.jetty.server.handler.ResourceHandler">
            <Set name="resourceBase"><SystemProperty
name="jetty.base"/>/../media</Set>
            <Set name="directoriesListed">true</Set>
        </New>
    </Set>
    <Set name="handler">
        <New class="org.eclipse.jetty.server.handler.ResourceHandler">
            <Set name="resourceBase"><SystemProperty
name="jetty.base"/>/../android/Slova/app/src/main/res/drawable-mdpi</Set>
            <Set name="directoriesListed">true</Set>
        </New>
    </Set>
</Configure>

The background is that I would like to be able to start Jetty server for
offline development and reuse as many static content from my git workarea
without duplicating it...

Thank you
Alex
_______________________________________________
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