<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_9_3.dtd">

<Configure id="FileServer" class="org.eclipse.jetty.server.Server">

    <Call name="addConnector">
      <Arg>
          <New class="org.eclipse.jetty.server.ServerConnector">
            <Arg><Ref refid="FileServer"/></Arg>
            <Set name="port">
              <Property name="http.port" default="8080" />
            </Set>
          </New>
      </Arg>
    </Call>

    <Set name="handler">
      <New class="org.eclipse.jetty.server.handler.HandlerList">
        <Set name="handlers">
          <Array type="org.eclipse.jetty.server.Handler">
            <Item>
              <New class="org.eclipse.jetty.server.handler.ResourceHandler">
                <Set name="directoriesListed">true</Set>
                <Set name="welcomeFiles">
                  <Array type="String"><Item>index.html</Item></Array>
                </Set>
                <Set name="resourceBase">
                  <Property name="fileserver.baseresource" default="." />
                </Set>
              </New>
            </Item>
            <Item>
              <New class="org.eclipse.jetty.server.handler.DefaultHandler">
              </New>
            </Item>
          </Array>
        </Set>
      </New>
    </Set>
</Configure>
