Skip to content

Tags

Tags

v2.8.2

Toggle v2.8.2's commit message
Release 2.8.1 was broken.

v2.8.1

Toggle v2.8.1's commit message
Bugfix avoid occasional stacktrace on timeout

v2.8.0

Toggle v2.8.0's commit message

v2.7.0

Toggle v2.7.0's commit message
Add method to pass env map with multiple variables to the process's e…

…nvironment

v2.6.2

Toggle v2.6.2's commit message
Fixing license entry in the pom

v2.6.1

Toggle v2.6.1's commit message
Bugfix to kill process on thread interruption

v2.6.0

Toggle v2.6.0's commit message
OutputConsumer Support for Standard Error

-----------------------------------------

Now the OutputConsumer abstraction can also be used for standard error.

Improved Handling and Message
-----------------------------

We get a real error message when two mutually exclusive
methods are called on the builder. The exception also gets
thrown as soon as the second method is called, i.e. it
is now in the place where the offence happens.

v2.5.1

Toggle v2.5.1's commit message
Re-releasing with proper version

v2.5

Toggle v2.5's commit message
Rework Exception Message

========================

Now we also include STDOUT into the ExcptionMessage when a process terminates
with an unexpected status code.

This helps with programs that return error messages on STDOUT rather than
STDERR.

To make the output clearer, the overall format of the message was reworked:
  * It now includes the full commandline string prefixed with a $-sign.
  * The lines after the first line are indented to make clear that they belong to the exception.
  * If present and available standard out and standard error are included and prefixed with
    "STDOUT:" and "STDERR:" respectively.

Here is an example invoking git commit with no staged changes:

~~~
Exception in thread "main" org.buildobjects.process.ExternalProcessFailureException: External process `git` terminated with unexpected exit status 1 after 39ms:
  $ git commit -m '1st commit'
  STDOUT: On branch master
  STDOUT:
  STDOUT: Initial commit
  STDOUT:
  STDOUT: nothing to commit (create/copy files and use "git add" to track)
~~~

Renamed ProcString to CommandLine
=================================

The command line representation of the invocation has previously  been
called `procString`. It was now renamed to `commandLine` and the old
methods have been deprecated.

v2.4.0

Toggle v2.4.0's commit message
Make getProcString available on Builder

Also, fix escaping for arguments.
Note that the escaping is really naïve.

This introduces an incompatibility,
because the ProcResult#getProcString now
uses single quotes for escaping arguments containing whitespace.