From owner-freebsd-ports Fri May 4 2:50: 7 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 41B6737B43C for ; Fri, 4 May 2001 02:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f449o1E83057; Fri, 4 May 2001 02:50:01 -0700 (PDT) (envelope-from gnats) Received: from heinz.jollem.com (c104187.upc-c.chello.nl [212.187.104.187]) by hub.freebsd.org (Postfix) with ESMTP id 1E2D537B422 for ; Fri, 4 May 2001 02:43:27 -0700 (PDT) (envelope-from ernst@heinz.jollem.com) Received: (from ernst@localhost) by heinz.jollem.com (8.11.3/8.11.3) id f449fjI42493; Fri, 4 May 2001 11:41:45 +0200 (CEST) (envelope-from ernst) Message-Id: <200105040941.f449fjI42493@heinz.jollem.com> Date: Fri, 4 May 2001 11:41:45 +0200 (CEST) From: Ernst de Haan Reply-To: ernst@heinz.jollem.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/27073: devel/jakarta-ant doesn't work out of the box Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 27073 >Category: ports >Synopsis: devel/jakarta-ant doesn't work out of the box >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri May 04 02:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Ernst de Haan >Release: FreeBSD 4.3-RELEASE i386 >Organization: Jollem Information Technology >Environment: System: FreeBSD heinz.jollem.com 4.3-RELEASE FreeBSD 4.3-RELEASE #3: Mon Apr 30 08:56:44 CEST 2001 root@heinz.jollem.com:/usr/src/sys/compile/HEINZ i386 >Description: After installing devel/jakarta-ant the 'ant' command doesn't work out of the box, since it tries to call 'java' instead of 'javavm'. >How-To-Repeat: Install any JDK. This will install javavmwrapper too, making the command 'javavm' available. Install the devel/jakarta-ant port. Now try running '/usr/local/bin/ant'. You will get a warning telling you about setting JAVA_HOME, and then it will fail complaining about not being able to find 'java'. >Fix: The fix is very small. Just change the JAVACMD in the 'ant' shell script from 'java' to 'javavm'. This way the current JDK will be used to run Ant. Here's the unified diff: --- ant.orig Fri May 4 11:36:55 2001 +++ ant Fri May 4 11:35:07 2001 @@ -54,7 +54,7 @@ fi else if [ "$JAVACMD" = "" ] ; then - JAVACMD=java + JAVACMD=javavm fi fi >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message