Examples of LRServer


Examples of net_alchim31_livereload.LRServer

            // https://github.com/davidB/livereload-jvm
            // reload the page when there are changes in the classpath
            // the idea is to watch for Less/JS modification
            // TODO probably it will mess with normal Java classes. Investigate!
            Path docroot = FileSystems.getDefault().getPath(".").resolve("target/classes/");
            LRServer lrServer = new LRServer(port, docroot);
            lrServer.start();
            System.in.read();
            System.out.println(">>> STOPPING EMBEDDED JETTY SERVER");
            lrServer.stop();
            server.stop();
            server.join();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(1);
View Full Code Here

Examples of net_alchim31_livereload.LRServer

  protected void initServer() throws MojoExecutionException {
    server.start();

    if (Boolean.TRUE.equals(livereload)) {
      lrServer = new LRServer(35729, outputDirectory.toPath());
      try {
        lrServer.start();
      } catch (Exception e) {
        throw new MojoExecutionException("LiveReload Failure", e);
      }
View Full Code Here

Examples of net_alchim31_livereload.LRServer

            println("");
            println("");

            LOG.info("Starting LiveReload server");

            LRServer lrServer = null;
            int lrPort = 35729;
            Path docroot = FileSystems.getDefault().getPath("src/main/webapp");
            lrServer = new LRServer(lrPort, docroot);
            lrServer.setExclusions(new String[]{".*\\.ts$"});

            LOG.info("starting jetty");
            server.start();

            LOG.info("Joining the jetty server thread...");
            // this guy does a start() and a join()...
            lrServer.run();
            //server.join();
        } catch (Throwable e) {
            LOG.error(e.getMessage(), e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.