From owner-freebsd-java@FreeBSD.ORG Thu Feb 21 12:03:39 2008 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C33216A403; Thu, 21 Feb 2008 12:03:39 +0000 (UTC) (envelope-from lulf@FreeBSD.org) Received: from bene1.itea.ntnu.no (bene1.itea.ntnu.no [IPv6:2001:700:300:3::56]) by mx1.freebsd.org (Postfix) with ESMTP id 4D5CB13C468; Thu, 21 Feb 2008 12:03:38 +0000 (UTC) (envelope-from lulf@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by bene1.itea.ntnu.no (Postfix) with ESMTP id 6434D16C786; Thu, 21 Feb 2008 13:03:36 +0100 (CET) Received: from carrot.studby.ntnu.no (unknown [IPv6:2001:700:300:3::185]) by bene1.itea.ntnu.no (Postfix) with ESMTP id E3F9A16C57A; Thu, 21 Feb 2008 13:03:33 +0100 (CET) Date: Thu, 21 Feb 2008 13:03:33 +0100 From: Ulf Lilleengen To: glewis@FreeBSD.org Message-ID: <20080221120333.GA36004@carrot.studby.ntnu.no> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: Debian amavisd-new at bene1.itea.ntnu.no Cc: java@FreeBSD.org Subject: [PATCH] Javavmwrapper defaulting to bsd.java.mk wrong? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2008 12:03:39 -0000 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, As I was trying to use jdk16 and diablo-jdk15 on the same machine, it would always default to jdk15. I figured the javavmwrapper script tries to use the bsd.java.mk PREFERRED_VERSION to determine this. This lead me to question if there is any good reason that bsd.java.mk should be checked before the versions set in javavms? Attached is a patch which adds "support" for Java 1.6 to the wrapper script, but also changes the order in how the java version to be used is. I'm no big user of java, so I'm not sure if there is a reason for the old behaviour, so excuse me if this is wrong. --=20 Ulf Lilleengen --9amGYk9869ThD9tj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHvWiUCILg8nMIdCURAqdIAJ46a50kvWNLX5p1U3ho3pCcRJFzZQCfSsXa /0X8QJjoBrnzt9hEWlBBPuY= =KZLn -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--