wildfly-as: depend on openjdk

master
Markus Reiter 2020-02-03 17:55:04 +01:00 committed by Alexander Bayandin
parent 3169de5966
commit f5818d17e5
1 changed files with 5 additions and 1 deletions

View File

@ -3,14 +3,18 @@ class WildflyAs < Formula
homepage "https://wildfly.org/"
url "https://download.jboss.org/wildfly/18.0.1.Final/wildfly-18.0.1.Final.tar.gz"
sha256 "54498e9c16b29c7f0a2cbab91edab6dfb9e2002259ee07c6d1247c23dc0cbb6c"
revision 1
bottle :unneeded
depends_on :java => "1.8+"
depends_on "openjdk"
def install
rm_f Dir["bin/*.bat"]
rm_f Dir["bin/*.ps1"]
inreplace "bin/standalone.sh", /JAVA="[^"]*"/, "JAVA='#{Formula["openjdk"].opt_bin}/java'"
libexec.install Dir["*"]
mkdir_p libexec/"standalone/log"
end