All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net_alchim31_livereload.Main Maven / Gradle / Ivy

package net_alchim31_livereload;

import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Path;

public class Main {

  public static void main(String[] args) throws Exception {
    try (FileSystem fs = FileSystems.getDefault()) {
      Path docroot = fs.getPath(".");
      int port = 35729;
      if (args.length > 0) {
        docroot = fs.getPath(args[0]);
      }
      if (args.length > 1) {
        port = Integer.parseInt(args[1], 10);
      }
      LRServer server = new LRServer(port, docroot);
      server.run();
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy