freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java
changeset 126 e905cd9b1e4a
parent 124 90371f3eb106
child 129 fd95f7873b96
     1.1 --- a/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java	Sun Oct 18 15:48:47 2009 +0200
     1.2 +++ b/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java	Sun Oct 18 20:29:49 2009 +0200
     1.3 @@ -36,7 +36,6 @@
     1.4  import com.sun.net.httpserver.HttpServer;
     1.5  import cz.xelfi.quoridor.Board;
     1.6  import cz.xelfi.quoridor.IllegalPositionException;
     1.7 -import cz.xelfi.quoridor.webidor.resources.Quoridor;
     1.8  import java.awt.Image;
     1.9  import java.io.IOException;
    1.10  import java.io.InputStream;
    1.11 @@ -332,9 +331,7 @@
    1.12  
    1.13          final HttpServer apiServer;
    1.14          if (remoteAPI == null) {
    1.15 -            int localAPIPort = port - 1;
    1.16 -            apiServer = Quoridor.start(localAPIPort);
    1.17 -            base = client.resource(new URI("http://localhost:" + localAPIPort));
    1.18 +            throw new IllegalArgumentException("Provide URL to API server"); // NOI18N
    1.19          } else {
    1.20              base = client.resource(new URI(remoteAPI));
    1.21              apiServer = null;