diff --git a/Formula/ant.rb b/Formula/ant.rb index d46eaf55450..85e76c926d1 100644 --- a/Formula/ant.rb +++ b/Formula/ant.rb @@ -14,6 +14,26 @@ class Ant < Formula end test do - system "#{bin}/ant", "-version" + (testpath/'build.xml').write <<-EOS.undent + + + + + + + + + + + EOS + (testpath/'src/main/java/org/homebrew/AntTest.java').write <<-EOS.undent + package org.homebrew; + public class AntTest { + public static void main(String[] args) { + System.out.println("Testing Ant with Homebrew!"); + } + } + EOS + system "#{bin}/ant", "compile" end end