1.1 --- a/launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/WebDebug.java Sat Jun 08 12:09:10 2013 +0200
1.2 +++ b/launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/WebDebug.java Tue Jun 11 15:11:56 2013 +0200
1.3 @@ -66,11 +66,13 @@
1.4 @Override
1.5 public void run() {
1.6 try {
1.7 - String p = "/home/jarda/src/bck2brwsr/html~demo/twitter/src/main/resources/org/apidesign/html/demo/twitter/index.html";
1.8 - File f = new File(p);
1.9 - String[] args = {"--livehtml", f.getAbsolutePath()};
1.10 - File dir = f.getParentFile();
1.11 - cliHandler(args, toDbg, this, System.err, dir);
1.12 + String p = System.getProperty("startpage.file");
1.13 + File f;
1.14 + if (p != null && (f = new File(p)).exists()) {
1.15 + String[] args = {"--livehtml", f.getAbsolutePath()};
1.16 + File dir = f.getParentFile();
1.17 + cliHandler(args, toDbg, this, System.err, dir);
1.18 + }
1.19 } catch (Exception ex) {
1.20 LOG.log(Level.SEVERE, null, ex);
1.21 }
1.22 @@ -152,7 +154,7 @@
1.23 for (;;) {
1.24 WebDebug.this.flush();
1.25 try {
1.26 - current = pending.poll(100, TimeUnit.MILLISECONDS);
1.27 + current = pending.poll(5, TimeUnit.MILLISECONDS);
1.28 if (current == null) {
1.29 return 0;
1.30 }