From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCj8I-0006YF-3b for guix-patches@gnu.org; Mon, 22 May 2017 04:56:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCj8F-0000M9-14 for guix-patches@gnu.org; Mon, 22 May 2017 04:56:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:57309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dCj8E-0000M4-M5 for guix-patches@gnu.org; Mon, 22 May 2017 04:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dCj8E-0000j5-Fo for guix-patches@gnu.org; Mon, 22 May 2017 04:56:02 -0400 Subject: bug#26966: [PATCH 06/22] gnu: Add ecj-javac-wrapper. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170517171905.7840-1-rekado@elephly.net> <20170517171905.7840-6-rekado@elephly.net> Date: Mon, 22 May 2017 10:55:06 +0200 In-Reply-To: (Roel Janssen's message of "Mon, 22 May 2017 09:38:52 +0200") Message-ID: <87shjxw9sl.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Roel Janssen Cc: Ricardo Wurmus , 26966@debbugs.gnu.org Hi! Roel Janssen skribis: >> + (with-output-to-file target >> + (lambda _ >> + (format #t "#!~a --no-auto-compile\n!#\n" guile) >> + (map write >> + `((use-modules (ice-9 match) >> + (ice-9 receive) >> + (ice-9 hash-table) >> + (srfi srfi-1) >> + (srfi srfi-26)) >> + (define defaults >> + '(("-bootclasspath" ,bootcp) >> + ("-source" "1.5") >> + ("-target" "1.5") >> + ("-cp" "."))) Minor nitpick: I would rather write this as (write `(begin (use-modules =E2=80=A6) (define =E2=80=A6) =E2=80=A6) port) because (1) =E2=80=98map=E2=80=99 returns a list of values, so =E2=80=98for= -each=E2=80=99 would be more appropriate, and (2) I think sexps should be considered as a whole rather than as a list of sexps in general. Ludo=E2=80=99.