homebrew-core/Formula/spring-loaded.rb
2015-10-23 21:04:23 +08:00

17 lines
607 B
Ruby

class SpringLoaded < Formula
desc "Java agent to enable class reloading in a running JVM"
homepage "https://github.com/spring-projects/spring-loaded"
url "https://repo.spring.io/simple/libs-release-local/org/springframework/springloaded/1.2.3.RELEASE/springloaded-1.2.3.RELEASE.jar"
version "1.2.3"
sha256 "c90c406c36ce077a9f76e05859d397aad7d0f427c6c395c6749cbdef697ba43f"
bottle :unneeded
def install
(share/"java").install "springloaded-#{version}.RELEASE.jar" => "springloaded.jar"
end
test do
system "java", "-javaagent:#{share}/java/springloaded.jar", "-version"
end
end