From owner-freebsd-java@FreeBSD.ORG Mon Jan 5 23:19:15 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17EF916A4CE for ; Mon, 5 Jan 2004 23:19:15 -0800 (PST) Received: from smtp0.euronet.nl (smtp0.euronet.nl [194.134.35.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F83C43D3F for ; Mon, 5 Jan 2004 23:19:13 -0800 (PST) (envelope-from ernst.dehaan@nl.wanadoo.com) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp0.euronet.nl (Postfix) with ESMTP id 684EB24708; Tue, 6 Jan 2004 08:19:12 +0100 (MET) From: Ernst de Haan Organization: Wanadoo Nederland B.V. To: Jonathan Chen , freebsd-java@freebsd.org Date: Tue, 6 Jan 2004 08:19:20 +0100 User-Agent: KMail/1.5.4 References: <20030909215210.GA5404@grimoire.chen.org.nz> <20040105174125.GB732@andouillette.esil.univ-mrs.fr> <20040105203602.GB5706@grimoire.chen.org.nz> In-Reply-To: <20040105203602.GB5706@grimoire.chen.org.nz> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401060819.20248.ernst.dehaan@nl.wanadoo.com> Subject: Re: ant script annoyances X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2004 07:19:15 -0000 Jonathan and all, A patch has been committed. Indeed the 'normal' Ant behaviour is now the default. An environment setting can be used to enable the 'non-compatible' behaviour, the inclusion of all shared JARs. I've called this variable ANT_INCLUDE_SHARED_JARS. It's longish, but at least it covers the load... If this variable is set to YES (case-sensitive!) then the FreeBSD-specific behaviour is enabled. The port has been updated to 1.6.0_1. If you can't wait for the CVSup mirrors to pick this up, download the following patch: http://people.FreeBSD.org/~znerd/apache-ant-1.6.0_1.diff You can use the following to test the port once installed: http://people.FreeBSD.org/~znerd/build.xml http://people.FreeBSD.org/~znerd/Test.java Once you've installed the 1.6.0_1 port, put the build.xml and the Test.java in one directory and execute 'ant -verbose' twice. Once with the environment variable ANT_INCLUDE_SHARED_JARS set to YES, and once with that variable unset. You should be able to see the difference in CLASSPATH. See also: http://www.freshports.org/devel/apache-ant/ Ernst On maandag 5 januari 2004 21:36, Jonathan Chen wrote: > On Mon, Jan 05, 2004 at 06:41:25PM +0100, Herve Quiroz wrote: > > Hi all! > > > > I'm back from holyday and after a look at my personal TODO list I found > > this issue still opened. Many things have been said on the subject and > > I remember we came quite close to a solution. Unfortunately nothing has > > been done yet. So I will read this thread again and see if we did agree > > on some point in which case I will code it... unless Ernst already > > modified apache-ant BSD run script in port version 1.6.0. > > The apache-ant script is still the same (I still delete the lines off > my local /usr/local/bin/ant). My recollection of the thread was that a > few of you wanted to keep the original functionality and wanted the > option to switch between the vanilla-ant and freebsd-enhanced-ant. > > My personal preference to is to have a "USE_FREEBSD_EXTENSIONS=no" in > the Makefile of the port, where the installer can redefine to "yes" if > they wish to use the FreeBSD-enhanced version. It's better to have just > one standard (one way or the other) version installed on a box than to > have too many features put into what should be just a simple wrapper > script. > > Cheers.