From owner-freebsd-java@FreeBSD.ORG Wed Sep 10 00:13:34 2003 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 0DE6416A4C3 for ; Wed, 10 Sep 2003 00:13:34 -0700 (PDT) Received: from smtp1.euronet.nl (smtp1.euronet.nl [194.134.35.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id C419243FDF for ; Wed, 10 Sep 2003 00:13:32 -0700 (PDT) (envelope-from ernst.dehaan@nl.wanadoo.com) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp1.euronet.nl (Postfix) with ESMTP id 7E53267142; Wed, 10 Sep 2003 09:13:30 +0200 (MEST) From: Ernst de Haan Organization: Wanadoo Nederland B.V. To: Jonathan Chen , freebsd-java@freebsd.org Date: Wed, 10 Sep 2003 09:13:34 +0200 User-Agent: KMail/1.5.2 References: <20030909215210.GA5404@grimoire.chen.org.nz> In-Reply-To: <20030909215210.GA5404@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: <200309100913.34213.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: Wed, 10 Sep 2003 07:13:34 -0000 Although I do see the usefulness of the current behaviour of the 'ant' script, I also recognize the need for different behaviour in some cases. The fastest and easiest short-term solution for this is to add an environment variable that will make the 'ant' script behave as you would like it to. Ernst On dinsdag 9 september 2003 23:52, Jonathan Chen wrote: > Hi, > > I'd like to make a plea to remove the following bits from the "ant" > script of the port: > > # FreeBSD-specific: Add the .jar files from > ${PREFIX}/share/java/classes for JAR_FILE in > "/usr/local/share/java/classes"/*.jar; do > > # If the directory is empty, then the input string is returned > if [ -f "${JAR_FILE}" ]; then > if [ -z "${LOCALCLASSPATH}" ]; then > LOCALCLASSPATH="${JAR_FILE}" > else > LOCALCLASSPATH="${JAR_FILE}":"${LOCALCLASSPATH}" > fi > fi > done > > I can't see the rationale for the addition of the jar files; any > decent project that reference the common jar files would make a copy > of it in the project's supplementary lib directory for maximum > portability. The adverse effects of adding this are: > > 1. it pollutes the environment. > 2. build.xml files fails in subtle ways on FreeBSD compared > to other Java platforms (eg: xdoclet task definition > with classpathref). This means I can't just move project from > other systems to FreeBSD simply, and vice versa. > > Cheers.