public class ProcessUtils
extends java.lang.Object
| Constructor and Description |
|---|
ProcessUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
captureRunProcess(java.nio.file.Path ngrokPath,
java.util.List<java.lang.String> args)
Start a blocking
ngrok process with the binary at the given path and the passed args. |
public static java.lang.String captureRunProcess(java.nio.file.Path ngrokPath,
java.util.List<java.lang.String> args)
throws java.lang.InterruptedException,
java.io.IOException
ngrok process with the binary at the given path and the passed args. When the
process returns, so will this method, and the captured output from the process along with it.
This method is meant for invoking ngrok directly (for instance, for API requests) and is not
necessarily compatible with non-blocking API methods or interacting with active tunnels. For that, use
NgrokProcess.
args - The args to pass to ngrok.java.lang.InterruptedException - The thread was interrupted during execution.java.io.IOException - An I/O exception occurred.