25 lines
850 B
Ruby
25 lines
850 B
Ruby
class Jmxterm < Formula
|
|
desc "Open source, command-line based interactive JMX client"
|
|
homepage "https://docs.cyclopsgroup.org/jmxterm"
|
|
url "https://github.com/jiaqi/jmxterm/releases/download/v1.0.2/jmxterm-1.0.2-uber.jar"
|
|
sha256 "3a8a7cf99d89a3f46fcf3bcfe9bb4838d7778a10730e0983a258edc765fede5c"
|
|
license "Apache-2.0"
|
|
revision 1
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "3177e031b339938a69004d980fc337a6717dab9194b8077bd0de598d2952b9ae"
|
|
end
|
|
|
|
depends_on arch: :x86_64 # openjdk@8 is not supported on ARM
|
|
depends_on "openjdk@8"
|
|
|
|
def install
|
|
libexec.install "jmxterm-#{version}-uber.jar"
|
|
bin.write_jar_script libexec/"jmxterm-#{version}-uber.jar", "jmxterm", "", java_version: "1.8"
|
|
end
|
|
|
|
test do
|
|
assert_match(/"software\.name".=."jmxterm";/, shell_output("echo about | #{bin}/jmxterm -n"))
|
|
end
|
|
end
|