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