public final class BackstageTask extends Object implements OptionHandler
标志是D例如一个命令行是这样的: sleep 500 代表休眠当前线程500毫秒 而sleep-Dtest 500表示提交一个名为"test"的任务到后台,命令行的功能不变,唯一的区别是被转移到了后台。 这个时候你可以使用 tasks 查看后台的任务信息。 使用 task test 查看这个命令的输出.
| 限定符和类型 | 字段和说明 |
|---|---|
protected static BackstageTask |
INSTANCE
singleton
|
| 构造器和说明 |
|---|
BackstageTask() |
| 限定符和类型 | 方法和说明 |
|---|---|
char |
option()
使用一个字符来标识一个操作
注意,这个操作是区分大小写的 |
void |
runWithParameter(String cmd,
String optionParameter,
List<String> argItems,
Interpreter interpreter)
带参数运行
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCompleteCommandprotected static final BackstageTask INSTANCE
public char option()
OptionHandleroption 在接口中 OptionHandlerpublic void runWithParameter(String cmd, String optionParameter, List<String> argItems, Interpreter interpreter)
OptionHandlerrunWithParameter 在接口中 OptionHandlercmd - 命令名optionParameter - 额外的参数argItems - 命令参数项,已经使用空格分隔成列表interpreter - 可以执行命令的解释器,由框架注入Copyright © 2021. All rights reserved.