ecj: delete (#28368)
This commit is contained in:
parent
78d5051fa4
commit
3e0f2d4fc1
1 changed files with 0 additions and 30 deletions
|
@ -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
|
Loading…
Reference in a new issue