1 package org.eclipse.jetty.embedded;
2
3 import org.eclipse.jetty.server.Server;
4 import org.eclipse.jetty.util.resource.Resource;
5 import org.eclipse.jetty.xml.XmlConfiguration;
6
7
8
9
10
11
12
13
14
15
16 public class FileServerXml
17 {
18 public static void main(String[] args) throws Exception
19 {
20 Resource fileserver_xml = Resource.newSystemResource("fileserver.xml");
21 XmlConfiguration configuration = new XmlConfiguration(fileserver_xml.getInputStream());
22 Server server = (Server)configuration.configure();
23 server.start();
24 server.join();
25 }
26 }