diff options
| author | Chris Smola | 2014-03-25 20:17:45 -0600 | 
|---|---|---|
| committer | Adam Vandenberg | 2014-04-23 20:06:19 -0700 | 
| commit | d2711640542c5d98c41d9162c3cc201f9c4d312f (patch) | |
| tree | 189e7269781d8b29ac55cd9a70d4cd4548680851 /Library/Formula/ant-contrib.rb | |
| parent | 21cb30525bbfd7743f2bf7de6c265fa2fc19531e (diff) | |
| download | homebrew-d2711640542c5d98c41d9162c3cc201f9c4d312f.tar.bz2 | |
ANT Contrib Tasks 1.0b3
The popular ANT compliment, ant-contrib-1.0b3.jar
Closes #27878.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/ant-contrib.rb')
| -rw-r--r-- | Library/Formula/ant-contrib.rb | 32 | 
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/ant-contrib.rb b/Library/Formula/ant-contrib.rb new file mode 100644 index 000000000..f5811e229 --- /dev/null +++ b/Library/Formula/ant-contrib.rb @@ -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  | 
