summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/launcher
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2010-05-26 12:13:19 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2010-05-26 12:13:19 +0000
commit3735511b23471975369c466bb810e686ee04811b (patch)
treed62908f141e001d795166c6662297e97fc04aa57 /src/com/vaadin/launcher
parent118430c0a8a3c6faa75529302516f15d3a201686 (diff)
downloadvaadin-framework-3735511b23471975369c466bb810e686ee04811b.tar.gz
vaadin-framework-3735511b23471975369c466bb810e686ee04811b.zip
still bit better behavior when trying to run multiple servers under debug mode in eclipse
svn changeset:13376/svn branch:6.4
Diffstat (limited to 'src/com/vaadin/launcher')
-rw-r--r--src/com/vaadin/launcher/DevelopmentServerLauncher.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/com/vaadin/launcher/DevelopmentServerLauncher.java b/src/com/vaadin/launcher/DevelopmentServerLauncher.java
index 79e9775d5e..8e6a71b2a6 100644
--- a/src/com/vaadin/launcher/DevelopmentServerLauncher.java
+++ b/src/com/vaadin/launcher/DevelopmentServerLauncher.java
@@ -32,23 +32,26 @@ public class DevelopmentServerLauncher {
* @param args
* @throws Exception
*/
- public static void main(String[] args) throws Exception {
+ public static void main(String[] args) {
// Pass-through of arguments for Jetty
final Map<String, String> serverArgs = parseArguments(args);
// Start Jetty
System.out.println("Starting Jetty servlet container.");
- final String url = runServer(serverArgs, "Development Server Mode");
-
- // Start Browser
- if (!serverArgs.containsKey("nogui") && url != null) {
- System.out.println("Starting Web Browser.");
+ String url;
+ try {
+ url = runServer(serverArgs, "Development Server Mode");
+ // Start Browser
+ if (!serverArgs.containsKey("nogui") && url != null) {
+ System.out.println("Starting Web Browser.");
- // Open browser into application URL
- BrowserLauncher.openBrowser(url);
+ // Open browser into application URL
+ BrowserLauncher.openBrowser(url);
+ }
+ } catch (Exception e) {
+ // NOP exception already on console by jetty
}
-
}
/**