@Test public void works() throws Exception { Integer exitValue = new LocalExec(context) .command("hello-world-test") .path(getBinDirAsResource()) .run(); assertThat(exitValue, is(0)); }
@Override public T command(Path command) { Objects.requireNonNull(command, "command was null"); this.command = command; return (T)this; }
Exec extends Action<Exec.Result<T>,Integer> implements PathsMixin<T>, ExecMixin<T> { @Override public T command(Path command) { Objects.requireNonNull(command, "command was null"); this.command = command; return (T)this; } }
Exec extends Action<Exec.Result<T>,Integer> implements PathsMixin<T>, ExecMixin<T> { @Override public T command(Path command) { Objects.requireNonNull(command, "command was null"); this.command = command; return (T)this; } Exec(Context context); }
Exec extends Action<Exec.Result<T>,Integer> implements PathsMixin<T>, ExecMixin<T> { @Override public T command(Path command) { Objects.requireNonNull(command, "command was null"); this.command = command; return (T)this; } Exec(Context context); T sudo(boolean sudo); T shell(boolean shell); @Override T command(Path command); @Override T command(File command); @Override T command(String command); @Override T arg(Object argument); @Override T args(Object... arguments); @Override T env(String name, String value); T workingDir(Path path); T workingDir(File path); T workingDir(String path); @Override T exitValues(Integer... exitValues); @Override T timeout(long timeoutInMillis); @Override StreamableInput getPipeInput(); @Override T pipeInput(StreamableInput pipeInput); @Override StreamableOutput getPipeOutput(); @Override T pipeOutput(StreamableOutput pipeOutput); @Override StreamableOutput getPipeError(); @Override T pipeError(StreamableOutput pipeError); @Override T pipeErrorToOutput(boolean pipeErrorToOutput); @Override CaptureOutput runCaptureOutput(); @Override T pipeErrorToOutput(); @Override T exitValue(Integer exitValue); @Override T timeout(long timeout, TimeUnit units); @Override T disablePipeOutput(); @Override T pipeOutput(File file); @Override T pipeOutput(Path path); @Override T pipeOutput(OutputStream stream); @Override T disablePipeInput(); @Override T pipeInput(String text, Charset charset); @Override T pipeInput(String text); @Override T pipeInput(File file); @Override T pipeInput(Path path); @Override T pipeInput(InputStream stream); @Override T disablePipeError(); @Override T pipeError(File file); @Override T pipeError(Path path); @Override T pipeError(OutputStream stream); }
Exec extends Action<Exec.Result<T>,Integer> implements PathsMixin<T>, ExecMixin<T> { @Override public T command(Path command) { Objects.requireNonNull(command, "command was null"); this.command = command; return (T)this; } Exec(Context context); T sudo(boolean sudo); T shell(boolean shell); @Override T command(Path command); @Override T command(File command); @Override T command(String command); @Override T arg(Object argument); @Override T args(Object... arguments); @Override T env(String name, String value); T workingDir(Path path); T workingDir(File path); T workingDir(String path); @Override T exitValues(Integer... exitValues); @Override T timeout(long timeoutInMillis); @Override StreamableInput getPipeInput(); @Override T pipeInput(StreamableInput pipeInput); @Override StreamableOutput getPipeOutput(); @Override T pipeOutput(StreamableOutput pipeOutput); @Override StreamableOutput getPipeError(); @Override T pipeError(StreamableOutput pipeError); @Override T pipeErrorToOutput(boolean pipeErrorToOutput); @Override CaptureOutput runCaptureOutput(); @Override T pipeErrorToOutput(); @Override T exitValue(Integer exitValue); @Override T timeout(long timeout, TimeUnit units); @Override T disablePipeOutput(); @Override T pipeOutput(File file); @Override T pipeOutput(Path path); @Override T pipeOutput(OutputStream stream); @Override T disablePipeInput(); @Override T pipeInput(String text, Charset charset); @Override T pipeInput(String text); @Override T pipeInput(File file); @Override T pipeInput(Path path); @Override T pipeInput(InputStream stream); @Override T disablePipeError(); @Override T pipeError(File file); @Override T pipeError(Path path); @Override T pipeError(OutputStream stream);  }