| 程序包 | 说明 |
|---|---|
| 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(boolean async,
CommandLine command) |
int |
CommandLineExecutor.execute(boolean async,
CommandLine command) |
int |
DefaultCommandLineExecutor.execute(boolean async,
CommandLine command,
ExecuteResultHandler handler) |
int |
CommandLineExecutor.execute(boolean async,
CommandLine command,
ExecuteResultHandler handler) |
int |
DefaultCommandLineExecutor.execute(boolean async,
CommandLine command,
Map<String,String> environment) |
int |
CommandLineExecutor.execute(boolean async,
CommandLine command,
Map<String,String> environment) |
int |
DefaultCommandLineExecutor.execute(boolean async,
CommandLine command,
Map<String,String> environment,
File workingDir,
ExecuteStreamHandler executeStreamHandler,
ExecuteResultHandler resultHandler) |
int |
CommandLineExecutor.execute(boolean async,
CommandLine command,
Map<String,String> environment,
File workingDirectory,
ExecuteStreamHandler streamHandler,
ExecuteResultHandler handler) |
int |
DefaultCommandLineExecutor.execute(CommandLine command) |
int |
CommandLineExecutor.execute(CommandLine command)
Methods for starting synchronous execution.
|
int |
DefaultCommandLineExecutor.execute(CommandLine command,
ExecuteResultHandler handler) |
int |
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.
|
int |
DefaultCommandLineExecutor.execute(CommandLine command,
Map<String,String> environment,
File workingDirectory,
ExecuteStreamHandler streamHandler,
ExecuteResultHandler handler) |
int |
CommandLineExecutor.execute(CommandLine command,
Map<String,String> environment,
File workingDirectory,
ExecuteStreamHandler streamHandler,
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 int |
DefaultCommandLineExecutor.executeInternal(CommandLine command,
Map<String,String> environment,
File dir,
ExecuteStreamHandler streamHandler)
Execute an internal process.
|
protected InstructionSequence |
DefaultCommandLineExecutor.launch(CommandLine command,
Map<String,String> env,
File workingDir)
Creates a process that runs a command.
|
| 构造器和说明 |
|---|
CommandLine(CommandLine other)
Copy constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected CommandLine |
DefaultProcessingEnvironment.getProcEnvCommand()
已过时。
No longer needed
|
| 限定符和类型 | 方法和说明 |
|---|---|
ProcessAdapter |
VmsCommandLauncher.exec(CommandLine cmd,
Map<String,String> env)
Launches the given command in a new process.
|
ProcessAdapter |
LocalCommandLauncher.exec(CommandLine cmd,
Map<String,String> env) |
ProcessAdapter |
CommandLauncherProxy.exec(CommandLine cmd,
Map<String,String> env)
Launches the given command in a new process.
|
P |
CommandLauncher.exec(CommandLine cmd,
Map<String,String> env)
Launches the given command in a new process.
|
ProcessAdapter |
WinNTCommandLauncher.exec(CommandLine cmd,
Map<String,String> env,
File workingDir)
Launches the given command in a new process, in the given working
directory.
|
ProcessAdapter |
VmsCommandLauncher.exec(CommandLine cmd,
Map<String,String> env,
File workingDir)
Launches the given command in a new process, in the given working
directory.
|
ProcessAdapter |
OS2CommandLauncher.exec(CommandLine cmd,
Map<String,String> env,
File workingDir)
Launches the given command in a new process, in the given working
directory.
|
abstract ProcessAdapter |
LocalCommandLauncher.exec(CommandLine cmd,
Map<String,String> env,
File workingDir) |
ProcessAdapter |
Java13CommandLauncher.exec(CommandLine cmd,
Map<String,String> env,
File workingDir)
Launches the given command in a new process, in the given working
directory
|
P |
CommandLauncher.exec(CommandLine cmd,
Map<String,String> env,
File workingDir)
Launches the given command in a new process, in the given working
directory.
|
Copyright © 2022. All rights reserved.