@Test public void linux_sh() { Path sh = assumeLinuxSh(); int exit = launcher().launch(sh, "-c", "touch result"); assertThat(exit, is(0)); assertThat(Files.exists(temporary.getRoot().toPath().resolve("result")), is(true)); }
public static int launch(Path command, List<String> arguments, Path workingDir, Map<String, String> env) { return new BasicCommandLauncher(workingDir, env).launch(command, arguments); }
CommandPath { public static int launch(Path command, List<String> arguments, Path workingDir, Map<String, String> env) { return new BasicCommandLauncher(workingDir, env).launch(command, arguments); } }
CommandPath { public static int launch(Path command, List<String> arguments, Path workingDir, Map<String, String> env) { return new BasicCommandLauncher(workingDir, env).launch(command, arguments); } CommandPath(List<? extends Path> directories); }
CommandPath { public static int launch(Path command, List<String> arguments, Path workingDir, Map<String, String> env) { return new BasicCommandLauncher(workingDir, env).launch(command, arguments); } CommandPath(List<? extends Path> directories); CommandPath append(CommandPath other); static CommandPath system(); static CommandPath of(String pathString); Optional<Path> find(String command); String asPathString(); static int launch(Path command, List<String> arguments, Path workingDir, Map<String, String> env); @Override String toString(); }
CommandPath { public static int launch(Path command, List<String> arguments, Path workingDir, Map<String, String> env) { return new BasicCommandLauncher(workingDir, env).launch(command, arguments); } CommandPath(List<? extends Path> directories); CommandPath append(CommandPath other); static CommandPath system(); static CommandPath of(String pathString); Optional<Path> find(String command); String asPathString(); static int launch(Path command, List<String> arguments, Path workingDir, Map<String, String> env); @Override String toString();  }