class TomeeWebprofile < Formula desc "All-Apache Java EE 6 Web Profile stack" homepage "https://tomee.apache.org/" url "https://www.apache.org/dyn/closer.cgi?path=tomee/tomee-1.7.3/apache-tomee-1.7.3-webprofile.tar.gz" version "1.7.3" sha256 "d738c56b96537a5157a827e73ceac60b6cc43a1c8d6d31b65ae69c77b6a9e7b6" 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-webprofile-startup" end def caveats; <<-EOS.undent The home of Apache TomEE Web is: #{opt_libexec} To run Apache TomEE: #{opt_libexec}/bin/tomee-webprofile-startup EOS end test do system "#{opt_libexec}/bin/configtest.sh" end end