From owner-freebsd-java@FreeBSD.ORG Tue Sep 9 14:52:14 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 CA33F16A4C0 for ; Tue, 9 Sep 2003 14:52:14 -0700 (PDT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6254F43FE0 for ; Tue, 9 Sep 2003 14:52:13 -0700 (PDT) (envelope-from jonc@chen.org.nz) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.9/8.12.9) with ESMTP id h89LqAIW005453 for ; Wed, 10 Sep 2003 09:52:10 +1200 (NZST) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.9/8.12.9/Submit) id h89LqAVs005452 for freebsd-java@freebsd.org; Wed, 10 Sep 2003 09:52:10 +1200 (NZST) (envelope-from jonc) Date: Wed, 10 Sep 2003 09:52:10 +1200 From: Jonathan Chen To: freebsd-java@freebsd.org Message-ID: <20030909215210.GA5404@grimoire.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: 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, 09 Sep 2003 21:52:14 -0000 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. -- Jonathan Chen ---------------------------------------------------------------------- Power corrupts, Absolute Power is pretty neat