Skip to content

Commit 0024757

Browse files
committed
更新README
1 parent 85cc825 commit 0024757

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Android命令执行以及回调
44

5+
[![Download][icon_download]][download]
6+
7+
```
8+
implementation 'com.excellence:exec:_latestVersion'
9+
```
10+
511
## 使用
612

713
```
@@ -67,3 +73,22 @@ Process process = new ProcessBuilder("command").command("arg").redirectErrorStre
6773
**注意**
6874

6975
**ProcessBuilder.start() 和 Runtime.exec()传递的参数有所不同,Runtime.exec()可接受一个单独的字符串,这个字符串是通过空格来分隔可执行命令程序和参数的;也可以接受字符串数组参数。而ProcessBuilder的构造函数是一个字符串列表或者数组。列表中第一个参数是可执行命令程序,其他的是命令行执行是需要的参数。通过查看JDK源码可知,Runtime.exec最终是通过调用ProcessBuilder来真正执行操作的。**
76+
77+
78+
## 版本更新
79+
80+
| 版本 | 描述 |
81+
| --- | ---- |
82+
| [1.0.0][Exec1.0.0] | 集成命令行执行 **2017-8-17** |
83+
84+
<!-- 网站链接 -->
85+
86+
[download]:https://bintray.com/veizhang/maven/exec/_latestVersion "Latest version"
87+
88+
<!-- 图片链接 -->
89+
90+
[icon_download]:https://api.bintray.com/packages/veizhang/maven/exec/images/download.svg
91+
92+
<!-- 版本 -->
93+
94+
[Exec1.0.0]:https://bintray.com/veizhang/maven/exec/1.0.0

0 commit comments

Comments
 (0)