Package org.springframework.boot.cli.command.status

Examples of org.springframework.boot.cli.command.status.ExitStatus


    int code = this.process.run(args.toArray(new String[args.size()]));
    if (code == 0) {
      return ExitStatus.OK;
    }
    else {
      return new ExitStatus(code, "EXTERNAL_ERROR");
    }
  }
View Full Code Here


    boolean debug = argsWithoutDebugFlags.length != args.length;
    if (debug) {
      System.setProperty("debug", "true");
    }
    try {
      ExitStatus result = run(argsWithoutDebugFlags);
      // The caller will hang up if it gets a non-zero status
      if (result != null && result.isHangup()) {
        return (result.getCode() > 0 ? result.getCode() : 0);
      }
      return 0;
    }
    catch (NoArgumentsException ex) {
      showUsage();
View Full Code Here

      }
      if (result instanceof Boolean) {
        return (Boolean) result ? ExitStatus.OK : ExitStatus.ERROR;
      }
      if (result instanceof Integer) {
        return new ExitStatus((Integer) result, "Finished");
      }
    }
    return ExitStatus.OK;
  }
View Full Code Here

    int code = this.process.run(args.toArray(new String[args.size()]));
    if (code == 0) {
      return ExitStatus.OK;
    }
    else {
      return new ExitStatus(code, "EXTERNAL_ERROR");
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.boot.cli.command.status.ExitStatus

Copyright © 2018 www.massapicom. 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.