Skip to content

Commit

Permalink
java-service-wrapper 3.5.46 (new formula)
Browse files Browse the repository at this point in the history
* Java Service Wrapper 3.5.46 (new formula)
* Add ant as a build dependency
* Add comment on the choice of javac.target.version=1.6
* Order dependencies alphabetically
* Add assert_match on test section
* Add CUnit as a Linux dependency

Closes #90008.

Signed-off-by: Carlo Cabrera <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
VonUniGE authored and BrewTestBot committed Nov 28, 2021
1 parent c7cbe69 commit 380ddb2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Formula/java-service-wrapper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
class JavaServiceWrapper < Formula
desc "Simplify the deployment, launch and monitoring of Java applications"
homepage "https://wrapper.tanukisoftware.com/"
url "https://downloads.sourceforge.net/project/wrapper/wrapper_src/Wrapper_3.5.46_20210903/wrapper_3.5.46_src.tar.gz"
sha256 "82e1d0c85488d1389d02e3abe3359a7f759119e356e3e3abd6c6d67615ae5ad8"
license "GPL-2.0-only"

depends_on "ant" => :build
depends_on "openjdk@11" => :build
on_linux do
depends_on "cunit" => :build
end

def install
ENV["JAVA_HOME"] = Formula["openjdk@11"].opt_prefix
# Default javac target version is 1.4, use 1.6 which is the minimum available on openjdk@11
system "ant", "-Dbits=64", "-Djavac.target.version=1.6"
libexec.install "lib", "bin", "src/bin" => "scripts"
end

test do
output = shell_output("#{libexec}/bin/testwrapper status", 1)
assert_match("Test Wrapper Sample Application", output)
end
end

0 comments on commit 380ddb2

Please sign in to comment.