public class Java13CommandLauncher extends LocalCommandLauncher
| 构造器和说明 |
|---|
Java13CommandLauncher()
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
ProcessAdapter |
exec(CommandLine cmd,
Map<String,String> env,
File workingDir)
Launches the given command in a new process, in the given working
directory
|
exec, isFailurepublic ProcessAdapter exec(CommandLine cmd, Map<String,String> env, File workingDir) throws IOException
exec 在接口中 CommandLauncher<ProcessAdapter>exec 在类中 LocalCommandLaunchercmd - 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 runIOException - probably forwarded from Runtime#execCopyright © 2021. All rights reserved.