Console width expanded to 100%. More structured output messages. launcher
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 17 Dec 2012 12:21:05 +0100
branchlauncher
changeset 3444adbde04e899
parent 343 8ecdd87e870a
child 346 b671ac44bc55
Console width expanded to 100%. More structured output messages.
launcher/src/main/java/org/apidesign/bck2brwsr/launcher/Console.java
launcher/src/main/resources/org/apidesign/bck2brwsr/launcher/harness.xhtml
     1.1 --- a/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/Console.java	Mon Dec 17 12:09:57 2012 +0100
     1.2 +++ b/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/Console.java	Mon Dec 17 12:21:05 2012 +0100
     1.3 @@ -62,20 +62,18 @@
     1.4              URL u = new URL(url);
     1.5              for (;;) {
     1.6                  String data = (String) u.getContent(new Class[] { String.class });
     1.7 -                log(data);
     1.8 +                log("\nGot \"" + data + "\"");
     1.9                  if (data.isEmpty()) {
    1.10                      log("No data, exiting");
    1.11                      break;
    1.12                  }
    1.13                  
    1.14                  Case c = Case.parseData(data);
    1.15 -                log("className: " + c.getClassName());
    1.16 -                log("methodName: " + c.getMethodName());
    1.17 -                log("request: " + c.getRequestId());
    1.18 +                log("Invoking " + c.getClassName() + '.' + c.getMethodName() + " as request: " + c.getRequestId());
    1.19  
    1.20                  Object result = invokeMethod(c.getClassName(), c.getMethodName());
    1.21  
    1.22 -                log("result: " + result);
    1.23 +                log("Result: " + result);
    1.24                  
    1.25                  String toSend;
    1.26                  if (result == null) {
     2.1 --- a/launcher/src/main/resources/org/apidesign/bck2brwsr/launcher/harness.xhtml	Mon Dec 17 12:09:57 2012 +0100
     2.2 +++ b/launcher/src/main/resources/org/apidesign/bck2brwsr/launcher/harness.xhtml	Mon Dec 17 12:21:05 2012 +0100
     2.3 @@ -29,7 +29,7 @@
     2.4          
     2.5          <h1>Bck2Browser Execution Harness</h1>
     2.6          
     2.7 -        <textarea id="result" rows="10" cols="80" disabled="">
     2.8 +        <textarea id="result" rows="25" style="width: 100%;" disabled="">
     2.9          </textarea>
    2.10          
    2.11          <script type="text/javascript">