Skip to content

Commit

Permalink
sonar-scanner Allow overriding JDK
Browse files Browse the repository at this point in the history
sonar-scanner Allow overrding sonar-scanner JDK if JAVA_HOME is set
  • Loading branch information
jonesbusy committed Oct 3, 2024
1 parent 53672aa commit eb10ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Formula/s/sonar-scanner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def install
ln_s etc/"sonar-scanner.properties", libexec/"conf/sonar-scanner.properties"
bin.env_script_all_files libexec/"bin/",
SONAR_SCANNER_HOME: libexec,
JAVA_HOME: Formula["openjdk"].opt_prefix
JAVA_HOME: Language::Java.overridable_java_home_env[:JAVA_HOME]
end

test do
Expand Down

0 comments on commit eb10ca3

Please sign in to comment.