dew/src/main/java/org/apidesign/bck2brwsr/dew/Dew.java
changeset 579 942deef87200
parent 546 79e5a4aae48d
child 710 769b77cdb7a5
     1.1 --- a/dew/src/main/java/org/apidesign/bck2brwsr/dew/Dew.java	Wed Jan 23 14:10:15 2013 +0100
     1.2 +++ b/dew/src/main/java/org/apidesign/bck2brwsr/dew/Dew.java	Fri Jan 25 10:25:30 2013 +0100
     1.3 @@ -42,7 +42,6 @@
     1.4   * @author phrebejk
     1.5   */
     1.6  final class Dew extends HttpHandler implements Bck2Brwsr.Resources {
     1.7 -    private String html = "";
     1.8      private Compile data;
     1.9  
    1.10      public static void main(String... args) throws Exception {
    1.11 @@ -69,7 +68,6 @@
    1.12              List<Diagnostic<? extends JavaFileObject>> err = res.getErrors();
    1.13              if (err.isEmpty()) {
    1.14                  data = res;
    1.15 -                html = tmpHtml;
    1.16                  response.getOutputStream().write("[]".getBytes());
    1.17                  response.setStatus(HttpStatus.OK_200);
    1.18              } else {
    1.19 @@ -98,7 +96,7 @@
    1.20          }
    1.21          if (r.equals("/result.html")) {
    1.22              response.setContentType("text/html");
    1.23 -            response.getOutputBuffer().write(html);
    1.24 +            response.getOutputBuffer().write(data.getHtml());
    1.25              response.setStatus(HttpStatus.OK_200);
    1.26              return;
    1.27          }