-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #201311 from Homebrew/bump-tomcat-11.0.2
tomcat 11.0.2 tomcat@10 10.1.34 (new formula)
- Loading branch information
Showing
4 changed files
with
68 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3055,6 +3055,7 @@ tofuenv | |
toipe | ||
tomcat | ||
tomcat-native | ||
tomcat@10 | ||
tomcat@9 | ||
tomee-plume | ||
tomee-plus | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
class TomcatAT10 < Formula | ||
desc "Implementation of Java Servlet and JavaServer Pages" | ||
homepage "https://tomcat.apache.org/" | ||
url "https://www.apache.org/dyn/closer.lua?path=tomcat/tomcat-10/v10.1.34/bin/apache-tomcat-10.1.34.tar.gz" | ||
mirror "https://archive.apache.org/dist/tomcat/tomcat-10/v10.1.34/bin/apache-tomcat-10.1.34.tar.gz" | ||
sha256 "f799541380bfff2b674cefd86c5376d2d7d566b3a2e7c4579d2b491de8ec6c36" | ||
license "Apache-2.0" | ||
|
||
livecheck do | ||
url :stable | ||
end | ||
|
||
bottle do | ||
sha256 cellar: :any_skip_relocation, all: "6c8fc0955ba8d245c8d66c1e8192ef2f08ad9bd12e6a3e511b1034e5b9f089e8" | ||
end | ||
|
||
keg_only :versioned_formula | ||
|
||
depends_on "openjdk" | ||
|
||
def install | ||
# Remove Windows scripts | ||
rm_r(Dir["bin/*.bat"]) | ||
|
||
# Install files | ||
prefix.install %w[NOTICE LICENSE RELEASE-NOTES RUNNING.txt] | ||
|
||
pkgetc.install Dir["conf/*"] | ||
(buildpath/"conf").rmdir | ||
libexec.install_symlink pkgetc => "conf" | ||
|
||
libexec.install Dir["*"] | ||
(bin/"catalina").write_env_script "#{libexec}/bin/catalina.sh", JAVA_HOME: Formula["openjdk"].opt_prefix | ||
end | ||
|
||
def caveats | ||
<<~EOS | ||
Configuration files: #{pkgetc} | ||
EOS | ||
end | ||
|
||
service do | ||
run [opt_bin/"catalina", "run"] | ||
keep_alive true | ||
end | ||
|
||
test do | ||
ENV["CATALINA_BASE"] = testpath | ||
cp_r Dir["#{libexec}/*"], testpath | ||
rm Dir["#{libexec}/logs/*"] | ||
|
||
pid = fork do | ||
exec bin/"catalina", "start" | ||
end | ||
sleep 3 | ||
begin | ||
system bin/"catalina", "stop" | ||
ensure | ||
Process.wait pid | ||
end | ||
assert_predicate testpath/"logs/catalina.out", :exist? | ||
end | ||
end |