<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">

<!-- =============================================================== -->
<!-- Add a ContextProvider to the deployment manager                 -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- This scans the webapps directory for war files and directories  -->
<!-- to deploy.                                                      -->
<!-- This configuration must be used with jetty-deploy.xml, which    -->
<!-- creates the deployment manager instance                         -->
<!-- =============================================================== -->
<Configure id="Server" class="org.eclipse.jetty.server.Server">
  <Ref id="DeploymentManager">
    <Call name="addAppProvider">
      <Arg>
        <New id="OverlayedAppProvider" class="org.eclipse.jetty.overlays.OverlayedAppProvider">
          <Set name="scanDir"><Property name="jetty.home" default="." />/overlays</Set>
          <Set name="nodeName"><Property name="node.name" default="nonameNode"/></Set>
          <Set name="scanInterval">1</Set>
        </New>
      </Arg>
    </Call>
  </Ref>
</Configure>
