ecj: delete (#28368)

This commit is contained in:
ilovezfs 2018-05-28 01:23:04 -07:00 committed by GitHub
parent 78d5051fa4
commit 3e0f2d4fc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,30 +0,0 @@
# This formula is intended to be used by gcc formulae with java support.
class Ecj < Formula
desc "Standalone version of the Eclipse Java compiler"
homepage "https://gcc.gnu.org/"
url "https://sourceware.org/pub/java/ecj-4.9.jar"
mirror "https://mirrors.kernel.org/sources.redhat.com/java/ecj-4.9.jar"
sha256 "9506e75b862f782213df61af67338eb7a23c35ff425d328affc65585477d34cd"
bottle :unneeded
def install
(share/"java").install "ecj-#{version}.jar" => "ecj.jar"
end
test do
(testpath/"Hello.java").write <<~EOS
class Hello
{
public static void main(String[] args)
{
System.out.println("Hello Homebrew");
}
}
EOS
system "java", "-cp", share/"java/ecj.jar", "org.eclipse.jdt.internal.compiler.batch.Main", "Hello.java"
assert_predicate testpath/"Hello.class", :exist?, "Failed to compile Java program!"
assert_equal "Hello Homebrew\n", shell_output("java Hello")
end
end