| 程序包 | 说明 |
|---|---|
| com.jn.langx.commandline | |
| com.jn.langx.commandline.environment | |
| com.jn.langx.commandline.launcher |
| 限定符和类型 | 方法和说明 |
|---|---|
CommandLine |
CommandLine.addArgument(String argument)
Add a single argument.
|
CommandLine |
CommandLine.addArgument(String argument,
boolean handleQuoting)
Add a single argument.
|
CommandLine |
CommandLine.addArguments(String addArguments)
Add multiple arguments.
|
CommandLine |
CommandLine.addArguments(String[] addArguments)
Add multiple arguments.
|
CommandLine |
CommandLine.addArguments(String[] addArguments,
boolean handleQuoting)
Add multiple arguments.
|
CommandLine |
CommandLine.addArguments(String addArguments,
boolean handleQuoting)
Add multiple arguments.
|
static CommandLine |
CommandLine.parse(String line)
Create a command line from a string.
|
static CommandLine |
CommandLine.parse(String line,
Map<String,?> substitutionMap)
Create a command line from a string.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
DefaultCommandLineExecutor.execute(CommandLine command) |
int |
CommandLineExecutor.execute(CommandLine command)
Methods for starting synchronous execution.
|
void |
DefaultCommandLineExecutor.execute(CommandLine command,
ExecuteResultHandler handler) |
void |
CommandLineExecutor.execute(CommandLine command,
ExecuteResultHandler handler)
Methods for starting asynchronous execution.
|
int |
DefaultCommandLineExecutor.execute(CommandLine command,
Map<String,String> environment) |
int |
CommandLineExecutor.execute(CommandLine command,
Map<String,String> environment)
Methods for starting synchronous execution.
|
void |
DefaultCommandLineExecutor.execute(CommandLine command,
Map<String,String> environment,
ExecuteResultHandler handler) |
void |
CommandLineExecutor.execute(CommandLine command,
Map<String,String> environment,
ExecuteResultHandler handler)
Methods for starting asynchronous execution.
|
static String |
CommandLines.executeAndReadAsString(CommandLine commandLine,
File workDirectory,
Map<String,String> environment)
执行命令,并将输出内容以字符串的形式返回
|
static List<String> |
CommandLines.executeAndReadLines(CommandLine commandLine,
File workDirectory,
Map<String,String> environment)
执行命令,并将输出内容以lines的形式返回
|
protected Process |
DefaultCommandLineExecutor.launch(CommandLine command,
Map<String,String> env,
File dir)
Creates a process that runs a command.
|
| 构造器和说明 |
|---|
CommandLine(CommandLine other)
Copy constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected CommandLine |
DefaultProcessingEnvironment.getProcEnvCommand()
已过时。
No longer needed
|
| 限定符和类型 | 方法和说明 |
|---|---|
Process |
VmsCommandLauncher.exec(CommandLine cmd,
Map<String,String> env)
Launches the given command in a new process.
|
Process |
CommandLauncherProxy.exec(CommandLine cmd,
Map<String,String> env)
Launches the given command in a new process.
|
Process |
CommandLauncherImpl.exec(CommandLine cmd,
Map<String,String> env) |
Process |
CommandLauncher.exec(CommandLine cmd,
Map<String,String> env)
Launches the given command in a new process.
|
Process |
WinNTCommandLauncher.exec(CommandLine cmd,
Map<String,String> env,
File workingDir)
Launches the given command in a new process, in the given working
directory.
|
Process |
VmsCommandLauncher.exec(CommandLine cmd,
Map<String,String> env,
File workingDir)
Launches the given command in a new process, in the given working
directory.
|
Process |
OS2CommandLauncher.exec(CommandLine cmd,
Map<String,String> env,
File workingDir)
Launches the given command in a new process, in the given working
directory.
|
Process |
Java13CommandLauncher.exec(CommandLine cmd,
Map<String,String> env,
File workingDir)
Launches the given command in a new process, in the given working
directory
|
abstract Process |
CommandLauncherImpl.exec(CommandLine cmd,
Map<String,String> env,
File workingDir) |
Process |
CommandLauncher.exec(CommandLine cmd,
Map<String,String> env,
File workingDir)
Launches the given command in a new process, in the given working
directory.
|
Copyright © 2021. All rights reserved.