class JbossForge < Formula desc "Tools to help set up and configure a project" homepage "http://forge.jboss.org/" url "https://downloads.jboss.org/forge/releases/2.20.0.Final/forge-distribution-2.20.0.Final-offline.zip" version "2.20.0.Final" sha256 "ee4f9b2fff8ac72714cfd0c852735fcdd04e1b4462de8a6ba0807cbe3df4503f" 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