f426da2f66
Closes #604. Signed-off-by: Andrew Janke <andrew@apjanke.net>
20 lines
648 B
Ruby
20 lines
648 B
Ruby
class JbossForge < Formula
|
|
desc "Tools to help set up and configure a project"
|
|
homepage "https://forge.jboss.org/"
|
|
url "https://downloads.jboss.org/forge/releases/3.1.1.Final/forge-distribution-3.1.1.Final-offline.zip"
|
|
version "3.1.1.Final"
|
|
sha256 "979578546ada18ed533ae6fc0909e96b185974dd5eaaf38e81418c70b59c9a87"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
rm_f Dir["bin/*.bat"]
|
|
libexec.install %w[addons bin lib logging.properties]
|
|
bin.install_symlink libexec/"bin/forge"
|
|
end
|
|
|
|
test do
|
|
ENV["FORGE_OPTS"] = "-Duser.home=#{testpath}"
|
|
assert_match "org.jboss.forge.addon:core", shell_output("#{bin}/forge --list")
|
|
end
|
|
end
|