import org.mortbay.jetty.Connector;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.bio.SocketConnector;
import org.mortbay.jetty.handler.ContextHandlerCollection;
import org.mortbay.jetty.webapp.WebAppContext;
public class Was {
public static void main(String args[]){
Server server = new Server();
SocketConnector connector = new SocketConnector();
connector.setPort(8000);
server.setConnectors(new Connector[] { connector });
ContextHandlerCollection contexts = new ContextHandlerCollection();
server.setHandler(contexts);
WebAppContext context = new WebAppContext();
context.setResourceBase("D:\\workspace\\velocity\\WebRoot");
context.setContextPath("/");
contexts.addHandler(context);
try {
server.start();
} catch(Exception e) {
e.printStackTrace();
}
}
}