From owner-freebsd-java@FreeBSD.ORG Tue Aug 24 14:41:04 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 8E9D616A4DF for ; Tue, 24 Aug 2004 14:41:04 +0000 (GMT) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FA3443D1F for ; Tue, 24 Aug 2004 14:41:04 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dirg.bris.ac.uk with esmtp (Exim 4.34) id 1BzcTu-00004p-NX for freebsd-java@freebsd.org; Tue, 24 Aug 2004 15:41:03 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 4.34) id 1BzcTn-0004rk-FA; Tue, 24 Aug 2004 15:40:57 +0100 Date: Tue, 24 Aug 2004 15:40:54 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: freebsd-java@freebsd.org In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant X-Spam-Score: 0.0 X-Spam-Level: / Subject: ant port Was: /usr/local/bin/javavmwrapper and "classpath" 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, 24 Aug 2004 14:41:04 -0000 On Tue, 24 Aug 2004, Jan Grant wrote: > Agh! Why (oh why oh why) does "classpath" put "." at the start of its > output? Apart from the obvious, that is (so that the shell script is > simpler to produce). Following up from my previous email (which came across as more grumpy than I intended, apologies), can I ask: is anyone using the apache-ant port in anger? I've had extreme difficulties with it thus far. In particular, the script seems to rely on the existence of a CLASSPATH variable it never sets. Additionally, it doesn't select any of the *.jar files in /usr/local/ant/lib by default, which has the effect of turning off any of the optional ant tasks. Am I doing something wrong? I've wound up including the following in my ~/.antrc as a workaround: [[ JAVA_HOME=/usr/local/jdk1.4.2 export JAVA_HOME lcp=$( \ find -s /usr/local/ant/lib -name '*.jar' | while read jar ; do echo -n ":${jar}" done | sed -e 's/://' ) LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$lcp ]] Which means if bsf.jar and js.jar are available in the usual place (/usr/local/share/java/whatever...) then the script tasks etc are again available... but I'd expect /usr/local/bin/ant to do this kind of thing on my behalf. Yours in confusion, jan -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Just because I have nothing to hide doesn't mean I have nothing to fear.