class AntContrib < Formula desc "Collection of tasks for Apache Ant" homepage "https://ant-contrib.sourceforge.net/" url "https://downloads.sourceforge.net/project/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3-bin.tar.gz" sha256 "6e58c2ee65e1f4df031796d512427ea213a92ae40c5fc0b38d8ac82701f42a3c" license "Apache-1.1" livecheck do url :stable regex(%r{url=.*?/ant-contrib[._-]v?(\d+(?:\.\d+)+(?:[a-z]\d+)?)-bin\.t}i) end no_autobump! because: :requires_manual_review bottle do rebuild 1 sha256 cellar: :any_skip_relocation, all: "11f6456cf47128a33054e067467dd8186dfd6db33c85cf60bb8620e4a269fced" end depends_on "ant" def install (share/"ant").install "ant-contrib-1.0b3.jar" share.install "docs" end test do (testpath/"build.xml").write <<~XML XML system Formula["ant"].opt_bin/"ant" end end