Skip to content

Commit ed19086

Browse files
fix inheritIo option (#488)
1 parent a4297c6 commit ed19086

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/codehaus/mojo/exec/ExtendedExecutor.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import java.io.File;
2323
import java.io.IOException;
24+
import java.nio.file.Path;
2425
import java.util.Map;
2526

2627
import org.apache.commons.exec.CommandLine;
@@ -41,6 +42,11 @@ public ExtendedExecutor(boolean inheritIo) {
4142
this.inheritIo = inheritIo;
4243
}
4344

45+
@Override
46+
protected Process launch(CommandLine command, Map<String, String> env, Path workingDirectory) throws IOException {
47+
return this.launch(command, env, workingDirectory.toFile());
48+
}
49+
4450
@Override
4551
protected Process launch(CommandLine command, Map<String, String> env, File dir) throws IOException {
4652
if (dir != null && !dir.exists()) {

0 commit comments

Comments
 (0)