Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vietj/childprocess-vertx-ext
Child Process extension for Vert.x
https://github.com/vietj/childprocess-vertx-ext
Last synced: about 2 months ago
JSON representation
Child Process extension for Vert.x
- Host: GitHub
- URL: https://github.com/vietj/childprocess-vertx-ext
- Owner: vietj
- License: apache-2.0
- Created: 2015-11-01T22:47:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-01-12T07:45:20.000Z (9 months ago)
- Last Synced: 2024-07-24T18:30:42.249Z (2 months ago)
- Language: Java
- Homepage:
- Size: 1020 KB
- Stars: 49
- Watchers: 11
- Forks: 10
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE-aslv20.html
Awesome Lists containing this project
- vertx-awesome - Vert.x Child Process - Spawn child process from Vert.x. (Miscellaneous)
README
## Child Process extension for Vert.x
[![childprocess-vertx-ext](https://github.com/vietj/childprocess-vertx-ext/actions/workflows/ci.yml/badge.svg)](https://github.com/vietj/childprocess-vertx-ext/actions/workflows/ci.yml)
Spawn child processes from Vert.x.
Based on https://github.com/brettwooldridge/NuProcess _Low-overhead, non-blocking I/O, external Process implementation for Java_.
## What for ?
[Vert.x 4.x](http://vertx.io)
## Using Child Process
To use Child Process, add the following dependency to the _dependencies_ section of your build descriptor:
* Maven (in your `pom.xml`):
```xml
com.julienviet
childprocess-vertx-ext
2.0.0```
* Gradle (in your `build.gradle` file):
```groovy
dependencies {
compile 'com.julienviet:childprocess-vertx-ext:2.0.0'
}
```Spawn child processes from Vert.x:
```java
Process
.create(vertx, "cat")
.startHandler(process -> {
process.exitHandler(code -> {
System.out.println("Process exited: " + code);
});
process.stdout().handler(buf -> {
System.out.println("Process wrote: " + buf);
});
StreamOutput stdin = process.stdin();
stdin.write(Buffer.buffer("hello"));
stdin.close();
}).start();
```## Web-site docs
* [Java docs](http://www.julienviet.com/childprocess-vertx-ext/guide/java/index.html)
## Snapshots
Use the dependency
```xml
com.julienviet
childprocess-vertx-ext
2.0.0```
Snapshots are deployed in Sonatype OSS repository: https://oss.sonatype.org/content/repositories/snapshots/com/julienviet/childprocess-vertx-ext/
## License
Apache License - Version 2.0
## Documentation
The online and published documentation is in `/docs` and is served by GitHub pages with Jekyll.
You can find the actual guide source in [src/main/docs/index.md](src/main/docs/index.md). At compilation time, this
source generates the `jekyll/guide/java/index.md`.The current documentation is in `/jekyll` and can be preview using Docker and your browser
* generate the documentation
** `mvn compile` to generate `jekyll/guide/java/index.md`
** `mvn site` to generate the javadoc in `jekyll/apidocs`
* run Jekyll
** `cd jekyll`
** `docker-compose up`
* open your browser at http://localhost:4000