Beispiel #1
0
  @Override
  public void invoke(String... args) throws IOException, CommandException {
    verifyArgs(args, 1);

    // Evaluate input file
    Path file = IOHelper.toPath(args[0]);
    LogHelper.subInfo("Evaluating file: '%s'", file);
    try (BufferedReader reader = new LineReader(IOHelper.newReader(file))) {
      for (String line = reader.readLine(); line != null; line = reader.readLine()) {
        server.commandHandler.eval(line, false);
      }
    }
  }
Beispiel #2
0
 @LauncherAPI
 protected final void debug(String message) {
   LogHelper.subDebug("#%d %s", id, message);
 }