2014-06-23 01:36:53 +00:00
|
|
|
require "formula"
|
2011-07-28 23:15:56 +00:00
|
|
|
|
|
|
|
class SeleniumServerStandalone < Formula
|
2014-06-23 01:36:53 +00:00
|
|
|
homepage "http://seleniumhq.org/"
|
2014-09-27 17:54:39 +00:00
|
|
|
url "http://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.1.jar"
|
|
|
|
sha1 "ef1b5f8ae9c99332f99ba8794988a1d5b974d27b"
|
2011-07-28 23:15:56 +00:00
|
|
|
|
2014-09-27 18:18:57 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "fa420b238130adea8407329e2b459a79eaa939dc" => :mavericks
|
|
|
|
sha1 "b0ac2d1411b63c50639be91da20b898d8c7de53f" => :mountain_lion
|
|
|
|
sha1 "dc9029c9028d18460fdd9c7e0ba296f05e5acd00" => :lion
|
|
|
|
end
|
|
|
|
|
2011-07-28 23:15:56 +00:00
|
|
|
def install
|
2014-01-10 19:51:39 +00:00
|
|
|
libexec.install "selenium-server-standalone-#{version}.jar"
|
|
|
|
bin.write_jar_script libexec/"selenium-server-standalone-#{version}.jar", "selenium-server"
|
2011-07-28 23:15:56 +00:00
|
|
|
end
|
|
|
|
|
2014-01-13 09:39:04 +00:00
|
|
|
plist_options :manual => "selenium-server -p 4444"
|
2011-07-28 23:15:56 +00:00
|
|
|
|
2012-11-25 15:06:41 +00:00
|
|
|
def plist; <<-EOS.undent
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
|
|
<plist version="1.0">
|
|
|
|
<dict>
|
2013-08-14 03:45:45 +00:00
|
|
|
<key>Label</key>
|
|
|
|
<string>#{plist_name}</string>
|
|
|
|
<key>RunAtLoad</key>
|
|
|
|
<true/>
|
|
|
|
<key>KeepAlive</key>
|
|
|
|
<false/>
|
|
|
|
<key>ProgramArguments</key>
|
|
|
|
<array>
|
|
|
|
<string>/usr/bin/java</string>
|
|
|
|
<string>-jar</string>
|
2014-03-19 22:24:44 +00:00
|
|
|
<string>#{libexec}/selenium-server-standalone-#{version}.jar</string>
|
2013-08-14 03:45:45 +00:00
|
|
|
<string>-port</string>
|
|
|
|
<string>4444</string>
|
|
|
|
</array>
|
|
|
|
<key>ServiceDescription</key>
|
|
|
|
<string>Selenium Server</string>
|
|
|
|
<key>StandardErrorPath</key>
|
|
|
|
<string>/var/log/selenium/selenium-error.log</string>
|
|
|
|
<key>StandardOutPath</key>
|
|
|
|
<string>/var/log/selenium/selenium-output.log</string>
|
2012-11-25 15:06:41 +00:00
|
|
|
</dict>
|
|
|
|
</plist>
|
2011-07-28 23:15:56 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|