ANT Contrib Tasks 1.0b3

The popular ANT compliment, ant-contrib-1.0b3.jar

Closes Homebrew/homebrew#27878.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Chris Smola 2014-03-25 20:17:45 -06:00 committed by Adam Vandenberg
parent e7a57e13dc
commit 1513c63723
1 changed files with 32 additions and 0 deletions

32
Formula/ant-contrib.rb Normal file
View File

@ -0,0 +1,32 @@
require "formula"
class AntContrib < Formula
homepage "http://ant-contrib.sourceforge.net/"
url "https://downloads.sourceforge.net/project/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3-bin.tar.gz"
sha1 "05b74808d51f501a993457fb9b7871484acba901"
version "1.0b3"
depends_on "ant"
def install
libexec.install "lib", "ant-contrib-1.0b3.jar"
share.install "docs"
end
test do
(testpath/"build.xml").write <<-EOS.undent
<project name="HomebrewTest" default="init" basedir=".">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<target name="init">
<if>
<equals arg1="BREW" arg2="BREW" />
<then>
<echo message="Test passes!"/>
</then>
</if>
</target>
</project>
EOS
system Formula["ant"].opt_bin/"ant", "-lib", libexec
end
end