From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDXTn-0002VF-8G for guix-patches@gnu.org; Tue, 01 May 2018 11:46:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDXTm-0000Lh-Bh for guix-patches@gnu.org; Tue, 01 May 2018 11:46:11 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38006) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDXTm-0000LE-6w for guix-patches@gnu.org; Tue, 01 May 2018 11:46:10 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fDXTl-000638-VQ for guix-patches@gnu.org; Tue, 01 May 2018 11:46:10 -0400 Subject: [bug#31333] [PATCH 14/22] gnu: Add groovy-jmx. Resent-Message-ID: From: Julien Lepiller Date: Tue, 1 May 2018 17:44:41 +0200 Message-Id: <20180501154449.3531-14-julien@lepiller.eu> In-Reply-To: <20180501154449.3531-1-julien@lepiller.eu> References: <20180501174136.1c411b1a@lepiller.eu> <20180501154449.3531-1-julien@lepiller.eu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31333@debbugs.gnu.org * gnu/packages/groovy.scm (groovy-jmx): New variable. --- gnu/packages/groovy.scm | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/groovy.scm b/gnu/packages/groovy.scm index 63a05f933..c2b076bd6 100644 --- a/gnu/packages/groovy.scm +++ b/gnu/packages/groovy.scm @@ -713,3 +713,54 @@ documentation for groovy applications."))) ,@(package-native-inputs groovy-java-bootstrap))) (synopsis "Groovy REPL") (description "This package contains the Groovy REPL."))) + +(define groovy-jmx + (package + (inherit groovy-bootstrap) + (name "groovy-jmx") + (arguments + `(#:jar-name "groovy-jmx.jar" + #:test-dir "src/test" + #:jdk ,icedtea-8 + #:phases + (modify-phases %standard-phases + (add-before 'configure 'chdir + (lambda _ + (chdir "subprojects/groovy-jmx"))) + (replace 'build + (lambda _ + (mkdir-p "build/classes") + (mkdir-p "build/jar") + (and + (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") + "org.codehaus.groovy.tools.FileSystemCompiler" + "-d" "build/classes" + "-j"; joint compilation + (find-files "src/main" + ".*\\.(groovy|java)$"))) + (zero? (system* "jar" "-cf" "build/jar/groovy-jmx.jar" + "-C" "build/classes" "."))))) + (replace 'check + (lambda _ + (mkdir-p "build/test-classes") + (substitute* "build.xml" + (("depends=\"compile-tests\"") "depends=\"\"") + (("}/java") "}/groovy")) + (and + (zero? (apply system* "java" "-cp" + (string-append (getenv "CLASSPATH") ":build/classes") + "org.codehaus.groovy.tools.FileSystemCompiler" + "-d" "build/test-classes" + "-j" + (append + (find-files "src/test" + ".*\\.(groovy|java)$")))) + (zero? (system* "ant" "check")))))))) + (native-inputs + `(("groovy-bootstrap" ,groovy-bootstrap) + ("groovy-test" ,groovy-test) + ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) + ,@(package-native-inputs groovy-java-bootstrap))) + (synopsis "Groovy JMX extension") + (description "This package contains the JMX extension of Groovy, for +management and monitoring JVM-based solutions."))) -- 2.17.0