class TomeePlus < Formula desc "Everything in TomEE Web Profile and JAX-RS, plus more" homepage "https://tomee.apache.org/" url "https://archive.apache.org/dist/tomee/tomee-8.0.0/apache-tomee-8.0.0-plus.tar.gz" sha256 "677d9db26a5d1d8fc23a348e29935133bdb995ae420623563bcfb0b6a6638da8" bottle :unneeded def install # Remove Windows scripts rm_rf Dir["bin/*.bat"] rm_rf Dir["bin/*.bat.original"] rm_rf Dir["bin/*.exe"] # Install files prefix.install %w[NOTICE LICENSE RELEASE-NOTES RUNNING.txt] libexec.install Dir["*"] bin.install_symlink "#{libexec}/bin/startup.sh" => "tomee-plus-startup" end def caveats; <<~EOS The home of Apache TomEE Plus is: #{opt_libexec} To run Apache TomEE: #{opt_libexec}/bin/tomee-plus-startup EOS end test do system "#{opt_libexec}/bin/configtest.sh" end end