you know, maybe we should add the code which starts jetty to a package in wicket.util... it's not a lot of code (now), but it would make it really easy to add a quickstart-like main() to anything... for example:


import wicket.util.web.servers.jetty.Jetty;

void main(String[] argv)
{
   new Jetty("file:src/main/resources/jetty-config.xml").start();
}

Eelco Hillenius wrote:

Well, we're using the quickstart for what you want to do. Also, I wouldn't be for introducing a dependency in core on Jetty.

Eelco

Gwyn Evans wrote:

[Retrying as SF bounced the 1st time]

Is there any interest in a trivial 'util.Runner' class to go in the
wicket-examples module?

I'm using one (as below) to run Jetty up from within my IDE to help
with exploring them, but I could be missing a trick that means it's
not needed/useful?

public static void main(String[] args) throws IOException, MultiException {
Server server = new Server();
SocketListener listener = new SocketListener();
listener.setPort(8080); server.addListener(listener);
server.addWebApplication("/wicket-examples","src/webapp");
server.start();
System.out.println("View examples at
http://localhost:8080/wicket-examples";);
}



Gwyn


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop





------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to