kaby76 / Antlr4BuildTasks

Third-party build tool for 'Official' Antlr4 tool and runtime parsers using .Net. Drop-in replacement for 'Antlr4cs' Antlr4 tool and build rules.
MIT License
77 stars 11 forks source link

Homebrew Java SDK not recognized (macOS) #90

Open erikbra opened 4 hours ago

erikbra commented 4 hours ago

The JDK installed using Homebrew on macOS has an extra 'Homebrew ' string at the end of the 'OpenJDK Runtime Environment' string, before the build number. This was not recognized, and the build task said that it couldn't find Java.

Example output from JDK installed via Homebrew om macOS:

openjdk version "23.0.1" 2024-10-15
OpenJDK Runtime Environment Homebrew (build 23.0.1)
OpenJDK 64-Bit Server VM Homebrew (build 23.0.1, mixed mode, sharing)
erikbra commented 3 hours ago

Related issues: #49 #86 #79

Actually auto-downloading the SDK for macOS arm64 requires getting the SDK from somewhere else, as it doesn't look like https://github.com/adoptium/temurin11-binaries/releases/ provides ARM64 binaries, only X64.