From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:57711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hN3JB-0003gf-BE for guix-patches@gnu.org; Sat, 04 May 2019 18:39:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hN3J9-0006eK-1U for guix-patches@gnu.org; Sat, 04 May 2019 18:39:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39039) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hN3J8-0006eG-V0 for guix-patches@gnu.org; Sat, 04 May 2019 18:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hN3J8-0007Xl-ST for guix-patches@gnu.org; Sat, 04 May 2019 18:39:02 -0400 Subject: [bug#35570] [PATCH 3/8] gnu: java-javaee-servletapi: Add properties-files to jar. Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:57602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hN3Ib-0003fx-GN for guix-patches@gnu.org; Sat, 04 May 2019 18:38:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hN3Ia-0006H8-3t for guix-patches@gnu.org; Sat, 04 May 2019 18:38:29 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:35766 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hN3IZ-0006G8-Tj for guix-patches@gnu.org; Sat, 04 May 2019 18:38:28 -0400 Received: from alma-ubu (p508AC174.dip0.t-ipconnect.de [80.138.193.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 70E713F85A for ; Sun, 5 May 2019 00:38:24 +0200 (CEST) Date: Sun, 5 May 2019 00:38:23 +0200 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20190505003823.453451b5@alma-ubu> In-Reply-To: <20190505003450.3bc9058a@alma-ubu> References: <20190505003450.3bc9058a@alma-ubu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/2oSmWXSu2IGdwPmMG6Kemgn"; protocol="application/pgp-signature" 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: 35570@debbugs.gnu.org --Sig_/2oSmWXSu2IGdwPmMG6Kemgn Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable * gnu/packages/java.scm (jav-javaee-servletapi)[arguments]: Add phase 'copy-resources' to copy properties-files. --- gnu/packages/java.scm | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index f92b3d5e89..9b635699f6 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -2851,7 +2851,25 @@ API and version 2.1 of the Java ServerPages API.") `(#:jar-name "javax-servletapi.jar" ;; no tests #:tests? #f - #:source-dir "src/main/java")) + #:source-dir "src/main/java" + #:phases + (modify-phases %standard-phases + (add-before 'build 'copy-resources + (lambda _ + (mkdir-p "build/classes/javax/servlet/http") + (let ((from-prefix "src/main/java/javax/servlet/") + (to-prefix "build/classes/javax/servlet/")) + (for-each (lambda (f) + (copy-file (string-append from-prefix f) + (string-append to-prefix f))) + (list "LocalStrings_ja.properties" + "LocalStrings.properties" + "LocalStrings_fr.properties" + "http/LocalStrings_es.properties" + "http/LocalStrings_ja.properties" + "http/LocalStrings.properties" + "http/LocalStrings_fr.properties"))) + #t))))) (native-inputs `(("unzip" ,unzip))) (home-page "https://javaee.github.io/servlet-spec/") --=20 2.21.0 --Sig_/2oSmWXSu2IGdwPmMG6Kemgn Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCXM4UXwAKCRC/KGy2WT5f /Rk4AJ4kUAeUFbyzCNayWP01SSfh6YJ3UgCfSAHEUAgB2qrLMeIYrRdUxIhewTk= =+j0D -----END PGP SIGNATURE----- --Sig_/2oSmWXSu2IGdwPmMG6Kemgn--