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/3.0.1.Final/forge-distribution-3.0.1.Final-offline.zip" version "3.0.1.Final" sha256 "2a3ee9702d3e9b32b0696920607e7a067d14b6d87fbbba634b6583089a4897c7" 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