public final class Exec extends Object
| Constructor and Description |
|---|
Exec() |
| Modifier and Type | Method and Description |
|---|---|
static ExecResult |
run(File directory,
Disposition disposition,
String... args)
Executes the process with the given arguments and returns the
execution result.
|
static ExecResult |
run(String name,
Disposition disposition,
String... args)
Executes the process with the given arguments and returns the
execution result.
|
public static ExecResult run(File directory, Disposition disposition, String... args) throws I18NException
directory - The working directory. Use null for the
JVM's current working directory.disposition - The disposition of the output.args - The process arguments.I18NInterruptedException - Thrown if process execution
fails due to an interruption.I18NException - Thrown if process execution fails for any
other reason.public static ExecResult run(String name, Disposition disposition, String... args) throws I18NException
name - The name of the working directory. Use null for the
JVM's current working directory.disposition - The disposition of the output.args - The process arguments.I18NException - Thrown if process execution fails.Copyright © 2015. All Rights Reserved.