From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH]: Add Ant. Date: Fri, 6 Feb 2015 16:51:45 +0100 Message-ID: References: <87r3u44jwg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJlDw-0000vi-6S for guix-devel@gnu.org; Fri, 06 Feb 2015 10:53:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJlDr-0008LA-5C for guix-devel@gnu.org; Fri, 06 Feb 2015 10:53:40 -0500 In-Reply-To: <87r3u44jwg.fsf@gnu.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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel >> * to use Ant without problems ANT_HOME and JAVA_HOME really should be >> set appropriately (ANT_HOME to $out of the ant-minimal package, >> JAVA_HOME to $out of icedtea6). Should I suggest these two paths as >> search paths by adding something like this to ant-minimal (for >> ANT_HOME) and icedtea6 (for JAVA_HOME)? >> >> (native-search-paths >> (list (search-path-specification >> (variable "ANT_HOME") >> (files '("."))))) > > Since Ant is generally used via the =E2=80=98ant=E2=80=99 command (AIUI= ), what about > wrapping that command so that ANT_HOME and JAVA_HOME are set > appropriately? According to the docs[1], "ANT_HOME is used by the launcher script for finding the libraries. JAVA_HOME is used by the launcher for finding the JDK/JRE to use." So, it would indeed make sense to modify the "launcher script" (whichever this is, probably "ant") to set ANT_HOME before continuing. I'm not a Java person, though, so I don't know if this is considered bad. JAVA_HOME, however, probably should not be set. After all, Ant works with different JDK/JRE versions, not only IcedTea 6. I even wonder if we should make icedtea6 a build-time input only to compile the libraries, so that one would not need to have icedtea6 installed at all. Or should there be multiple variants of Java packages akin to what we do with Python modules? I must admit that I find this rather confusing. How closely do we have to tie Java applications / libraries to a particular version of the JDK? Are there any insights you could share about how it's done in Nix? ~~ Ricardo [1]: http://ant.apache.org/manual/index.html