homebrew-core/Formula/jboss-forge.rb
2016-04-18 11:14:07 -04:00

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.0.Final/forge-distribution-3.1.0.Final-offline.zip"
version "3.1.0.Final"
sha256 "710941f4db76b74e7ed9710060adcc416a056101294d9e758f3252f25c3f9569"
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