From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Specifying Java version when using ant-build-system Date: Mon, 15 Aug 2016 16:42:01 +0200 Message-ID: <87h9am14cm.fsf@elephly.net> References: <20160815161734.43f11abd@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZJ5k-0000bE-Dr for guix-devel@gnu.org; Mon, 15 Aug 2016 10:42:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZJ5g-0003kD-7A for guix-devel@gnu.org; Mon, 15 Aug 2016 10:42:15 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:24307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZJ5f-0003jb-Va for guix-devel@gnu.org; Mon, 15 Aug 2016 10:42:12 -0400 In-reply-to: <20160815161734.43f11abd@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel@gnu.org Danny Milosavljevic writes: > Hi, > > how can I specify that I need a Java 1.8 compiler and source level when using ant-build-system? The build system adds these inputs by default: (build-inputs `(("jdk" ,jdk "jdk") ("ant" ,ant) ("zip" ,zip) ,@native-inputs)) You should be able to override each of these by specifying them as a keyword argument, e.g. (arguments `(#:jdk ,some-other-jdk #:zip ,some-other-zip)) > Also, guix/build-system/ant.scm says: > > (define* (ant-build store name inputs > #:key > (tests? #t) > (test-target "tests") > (configure-flags ''()) > (make-flags ''()) > (build-target "jar") > (jar-name #f) > (phases '(@ (guix build ant-build-system) > %standard-phases)) > (outputs '("out")) > (search-paths '()) > (system (%current-system)) > (guile #f)p > ^^^ what does this mean? Ouch! This shouldn’t have been committed. This is what happened pretty often with my terrible keyboard at work — my control key (among many other keys) wasn’t very reliable and would sometimes stop working while I moved around in the sources in Emacs (where Ctrl+p moves up one line). I’m surprised this doesn’t lead to an error. ~~ Ricardo