+1 - i also put that in the test source tree

On Mon, Apr 13, 2009 at 3:28 PM, Thiago H. de Paula Figueiredo
<thiag...@gmail.com> wrote:
> I'm not using any Eclipse plugins: I just wrote a class (I call it
> Main) in the test sources folder and added Jetty 6.1.14 as a test
> dependency. My Main class has code in its main() method:
>
> Server server = new Server();
>
> Connector connector = new SelectChannelConnector();
> connector.setPort(80);
> server.setConnectors(new Connector[] { connector });
>
> WebAppContext webapp = new WebAppContext();
> webapp.setParentLoaderPriority(true);
> webapp.setContextPath("/");
> webapp.setResourceBase("src/main/webapp");
> webapp.setDefaultsDescriptor(webapp.getResourceBase() +
> "/WEB-INF/webdefault.xml");
> server.setHandler(webapp);
>
> server.start();
> server.join();
>
> I run or debug it as I would run any other Java class.
>
> --
> Thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to