You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tiny, pure object-oriented, declarative and immutable wrapper of [zt-exec](https://github.com/zeroturnaround/zt-exec) with additional features around a process execution. All features of [zt-exec](https://github.com/zeroturnaround/zt-exec) are still available for usage along with CmdTool.
6
+
Tiny, pure object-oriented, declarative and immutable wrapper of [zt-exec](https://github.com/zeroturnaround/zt-exec) with additional features around a process execution.
7
7
8
8
Java 8+ required.
9
9
10
-
**Note**: it is an early alpha version, the API may change.
11
-
12
10
### Motivation
13
11
When we call external programs from Java, we certainly need to harvest the output files and output stream. It is ok, but what if we have thousands of calls? They will pollute a disk space if some of them produce files we don't need.
14
-
So, we have to do a clean up of disk space if files don't need anymore, just like Java GC frees RAM automatically.
15
-
16
-
This library solves this small problem and intended to call each command inside a separate directory. It performs particular activities with the directory, such as creating or deleting on appropriate stages of execution (before/after start, after the finish and after stop process).
12
+
So, we have to do a clean up of disk space if the files don't need anymore, just like Java GC frees a RAM automatically.
17
13
18
14
### Features
15
+
All features of [zt-exec](https://github.com/zeroturnaround/zt-exec) are supported plus the following:
19
16
- Execute command or script
20
17
- Save output stream of the process into a file
21
-
- Create work directory automatically
22
-
- Clean up disk space from a produced data automatically
18
+
- Create and clean up work directory automatically
23
19
24
20
### Download
25
21
1. Get the [latest version here](https://github.com/alekseysotnikov/CmdTool/releases) with or without dependencies
@@ -28,13 +24,13 @@ This library solves this small problem and intended to call each command inside
0 commit comments