krakowski / gradle-jextract

Gradle plugin for integrating Project Panama's jextract tool
https://plugins.gradle.org/plugin/io.github.krakowski.jextract
GNU General Public License v3.0
52 stars 10 forks source link

Can't find jextract.exe on Windows even though it is in PATH #8

Closed BartvHelvert closed 2 years ago

BartvHelvert commented 2 years ago

Environment

How does this bug occur?

  1. Clone https://github.com/krakowski/jextract-demo
  2. Put jextract in PATH
  3. ./gradlew run

What happens when the bug occurs?

Throws exception and fails build:

Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 23: $PATH$\jextract.exe
    at io.github.krakowski.jextract.JextractTask$findExecutable$pathExecutable$1.apply(JextractTask.kt:54)
    at io.github.krakowski.jextract.JextractTask$findExecutable$pathExecutable$1.apply(JextractTask.kt:19)
    at io.github.krakowski.jextract.JextractTask.findExecutable(JextractTask.kt:56)
    at io.github.krakowski.jextract.JextractTask.action(JextractTask.kt:74)

Would you like to submit a PR fixing this bug?

[x] YES [ ] NO