Skip to content

Commit

Permalink
Massaging Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fleipold committed Feb 21, 2021
1 parent 942e4be commit 6a7961b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ Intro
-----

Running external commands in Java is an error prone task.
JProc helps managing input and output of external processes as
well as error conditions. It uses sensible defaults, such as throwing an
exception if a process terminates with a non zero exit code.
`JProc` helps managing input and output of non-interactive,
external processes as well as error conditions. It uses sensible
defaults, such as throwing an exception if a process terminates
with a non zero exit status.

Getting Started
---------------
Expand Down Expand Up @@ -193,7 +194,7 @@ try {
} catch (ExternalProcessFailureException ex) {
assertEquals("No such file or directory", ex.getStderr().split("\\:")[2].trim());
assertTrue(ex.getExitValue() > 0);
assertEquals("ls xyz", ex.getCommand());
assertEquals("ls xyz", ex.getCommandLine());
assertTrue(ex.getTime() > 0);

}
Expand Down
7 changes: 4 additions & 3 deletions src/test/java/org/buildobjects/process/ProcBuilderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
* -----
*
* Running external commands in Java is an error prone task.
* JProc helps managing input and output of external processes as
* well as error conditions. It uses sensible defaults, such as throwing an
* exception if a process terminates with a non zero exit code.
* `JProc` helps managing input and output of non-interactive,
* external processes as well as error conditions. It uses sensible
* defaults, such as throwing an exception if a process terminates
* with a non zero exit status.
*
* Getting Started
* ---------------
Expand Down

0 comments on commit 6a7961b

Please sign in to comment.