Browse Source

still bit better behavior when trying to run multiple servers under debug mode in eclipse

svn changeset:13376/svn branch:6.4
tags/6.7.0.beta1
Matti Tahvonen 14 years ago
parent
commit
3735511b23
1 changed files with 12 additions and 9 deletions
  1. 12
    9
      src/com/vaadin/launcher/DevelopmentServerLauncher.java

+ 12
- 9
src/com/vaadin/launcher/DevelopmentServerLauncher.java View File

@@ -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
}
}
/**

Loading…
Cancel
Save