From owner-freebsd-ports Thu Nov 29 15:30:15 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 2229637B41A for ; Thu, 29 Nov 2001 15:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fATNU1904773; Thu, 29 Nov 2001 15:30:01 -0800 (PST) (envelope-from gnats) Received: from ssec.wisc.edu (ssec.wisc.edu [144.92.108.61]) by hub.freebsd.org (Postfix) with ESMTP id BFD3B37B417 for ; Thu, 29 Nov 2001 15:23:08 -0800 (PST) Received: from hyde.ssec.wisc.edu (root@hyde.ssec.wisc.edu [128.104.109.251]) by ssec.wisc.edu (8.9.3/8.9.3) with ESMTP id RAA18366 for ; Thu, 29 Nov 2001 17:23:08 -0600 Received: from hyde.ssec.wisc.edu (localhost [127.0.0.1]) by hyde.ssec.wisc.edu (8.10.2+Sun/8.10.2) with ESMTP id fATNN3k20011 for ; Thu, 29 Nov 2001 17:23:03 -0600 (CST) Message-Id: <200111292323.fATNN3k20011@hyde.ssec.wisc.edu> Date: Thu, 29 Nov 2001 17:23:03 -0600 From: Dave Glowacki Reply-To: Dave Glowacki To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/32383: 'ant' doesn't work if JAVA_HOME not set Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 32383 >Category: ports >Synopsis: 'javavm' doesn't work if more than 1 argument is specified >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 29 15:30:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Dave Glowacki >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD eusebius.glowacki.org 4.4-STABLE FreeBSD 4.4-STABLE #0: Mon Nov 19 15:14:03 CST 2001 dglo@eusebius.glowacki.org:/usr/src/sys/compile/EUSEBIUS i386 >Description: 'javavm' only passes the first argument to the java executable. >How-To-Repeat: Run 'javavm -classpath foo:bar baz', and it will print -classpath requires class path specification Usage: java [-options] class [args...] because only '-classpath' is passed to the executable. >Fix: Apply the following patch: --- javavmwrapper/src/javavmwrapper.sh.orig Mon Nov 26 11:21:16 2001 +++ javavmwrapper/src/javavmwrapper.sh Thu Nov 29 13:57:17 2001 @@ -25,10 +25,12 @@ tryrunVM () { if [ -x "${1}" ]; then - exec "${1}" ${2} + vm=${1} + shift + exec "${vm}" "${@}" fi - /bin/echo "${IAM}: warning: couldn't start specified JavaVM - \"${1}\"" >&2 + /bin/echo "${IAM}: warning: couldn't start specified JavaVM - \"${vm}\"" >&2 } registerVM () { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message