[fenix] For https://github.com/mozilla-mobile/fenix/issues/21084: add Runtime.execRea...
commit89eb4c1ea99c59a7b7761b0deefb6ef4325a3f16
authorMichael Comella <michael.l.comella@gmail.com>
Thu, 4 Nov 2021 22:14:17 +0000 (4 15:14 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 8 Nov 2021 19:15:16 +0000 (8 19:15 +0000)
tree86635b5753aecc6abed693928f8a5994bc8f2365
parent0c967f6df0a67bf7f06b95a1aa4633b00ff9626f
[fenix] For https://github.com/mozilla-mobile/fenix/issues/21084: add Runtime.execReadStandardOutOrThrow.

This command makes it a one liner to execute an external command, which will
allow us to easily run git commands in the next section.

Sample error output:

```
* What went wrong:
Execution failed for task ':app:gitHash'.
> command exited with non-zero exit value: 1.
  cmd: git reev-parse --short HEAD
  stderr:
  git: 'reev-parse' is not a git command. See 'git --help'.

  The most similar command is
        rev-parse
```
mobile/android/fenix/buildSrc/src/main/java/org/mozilla/fenix/gradle/ext/Runtime.kt [new file with mode: 0644]