Small iprovement to the Start.java generated by the maven archtype
------------------------------------------------------------------
Key: WICKET-1490
URL: https://issues.apache.org/jira/browse/WICKET-1490
Project: Wicket
Issue Type: Improvement
Components: wicket-quickstart
Affects Versions: 1.3.3
Reporter: Brill Pappin
Priority: Minor
The maven archtype generates a very useful class called Start.java in
src/test/java.
It uses a loop to receive input to know when it should shut down.
On line Start.java:36
while (System.in.available() == 0) {
Thread.sleep(5000);
}
should be replaced with:
System.in.read();
System.out.println("Stopping embedded Jetty server...");
essentially instead of going into the sleep loop, we're using the blocking
aspect of the input stream to know when we should allow the thread to exit.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.