2014-02-13 00:16:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class WildflyAs < Formula
|
|
|
|
homepage 'http://wildfly.org/'
|
2014-06-15 03:36:58 +00:00
|
|
|
url 'http://download.jboss.org/wildfly/8.1.0.Final/wildfly-8.1.0.Final.tar.gz'
|
|
|
|
sha1 '220461e3c4eab157875a550f1222cd45a814ed90'
|
2014-02-13 00:16:01 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
rm_f Dir["bin/*.bat"]
|
|
|
|
libexec.install Dir['*']
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
The home of WildFly Application Server 8 is:
|
2014-03-06 05:28:31 +00:00
|
|
|
#{opt_libexec}
|
2014-02-13 00:16:01 +00:00
|
|
|
You may want to add the following to your .bash_profile:
|
2014-03-06 05:28:31 +00:00
|
|
|
export JBOSS_HOME=#{opt_libexec}
|
2014-02-13 00:16:01 +00:00
|
|
|
export PATH=${PATH}:${JBOSS_HOME}/bin
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-03-06 05:28:31 +00:00
|
|
|
system "#{opt_libexec}/bin/standalone.sh --version | grep #{version}"
|
2014-02-13 00:16:01 +00:00
|
|
|
end
|
|
|
|
end
|