public class Java13CommandLauncher extends CommandLauncherImpl
构造器和说明 |
---|
Java13CommandLauncher()
Constructor
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Process |
exec(CommandLine cmd,
java.util.Map env,
java.io.File workingDir)
Launches the given command in a new process, in the given working
directory
|
exec, isFailure
public java.lang.Process exec(CommandLine cmd, java.util.Map env, java.io.File workingDir) throws java.io.IOException
exec
在接口中 CommandLauncher
exec
在类中 CommandLauncherImpl
cmd
- the command line to execute as an array of stringsenv
- the environment to set as an array of stringsworkingDir
- the working directory where the command should runjava.io.IOException
- probably forwarded from Runtime#exec