homebrew-core/Formula/glassfish.rb

30 lines
760 B
Ruby
Raw Normal View History

require 'formula'
class Glassfish < Formula
homepage 'https://glassfish.java.net'
url 'http://download.java.net/glassfish/4.0/release/glassfish-4.0.zip'
sha1 'daca9808d80df35b26cd9545a84e8324ed34fe7e'
# To keep empty folders around
skip_clean 'libexec'
def install
rm_rf Dir['bin/*.bat']
libexec.install Dir["*"]
libexec.install Dir[".org.opensolaris,pkg"]
end
def caveats; <<-EOS.undent
The home of GlassFish Application Server 4 is:
2014-03-06 05:28:31 +00:00
#{opt_libexec}
You may want to add the following to your .bash_profile:
2014-03-06 05:28:31 +00:00
export GLASSFISH_HOME=#{opt_libexec}
export PATH=${PATH}:${GLASSFISH_HOME}/bin
2012-02-12 19:15:30 +00:00
Note: The support scripts used by GlassFish Application Server 4
are *NOT* linked to bin.
EOS
end
end