Skip to content

Commit

Permalink
Fix command output on invocation error
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
krakowski committed Apr 29, 2023
1 parent 4c8b63c commit 01651a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/krakowski/gradle-jextract/publish.yml?label=GitHub%20Workflow)
[![Gradle Plugin Portal](https://img.shields.io/gradle-plugin-portal/v/io.github.krakowski.jextract?label=Gradle%20Plugin%20Portal&color=1e81b0)](https://plugins.gradle.org/plugin/io.github.krakowski.jextract)


This is a Gradle plugin for integrating Project Panama's [`jextract`](https://github.com/openjdk/jextract) tool in the build process.
There is also a [full demo project](https://github.com/krakowski/jextract-demo) showcasing the `gradle-jextract` plugin.
## :bulb:   Example
Expand All @@ -6,7 +10,7 @@ Since the plugin is available on [Gradle's Plugin Portal](https://plugins.gradle

```gradle
plugins {
id "io.github.krakowski.jextract" version "0.4.0"
id "io.github.krakowski.jextract" version "0.4.1"
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group = "io.github.krakowski"
version = "0.4.0"
version = "0.4.1"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ abstract class JextractTask : DefaultTask() {
result.await(stdout, stderr)
if (result.exitValue() != 0) {
throw GradleException("Invoking jextract failed.\n\n" +
" command: ${command}\n stdout: ${stdout}\n stderr: ${stderr}")
" command: ${command.joinToString(" ")}\n stdout: ${stdout}\n stderr: ${stderr}")
}
}

Expand Down

0 comments on commit 01651a9

Please sign in to comment.