From owner-freebsd-java@FreeBSD.ORG Thu Sep 11 09:01:20 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 1A4E316A4C4 for ; Thu, 11 Sep 2003 09:01:20 -0700 (PDT) Received: from puget.esil.univ-mrs.fr (puget.esil.univ-mrs.fr [139.124.41.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D2A843FEA for ; Thu, 11 Sep 2003 09:01:18 -0700 (PDT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from puget.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1]) h8BFoup1057518; Thu, 11 Sep 2003 17:50:56 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from localhost (rv@localhost)h8BFotFD057515; Thu, 11 Sep 2003 17:50:55 +0200 (CEST) X-Authentication-Warning: puget.esil.univ-mrs.fr: rv owned process doing -bs Date: Thu, 11 Sep 2003 17:50:54 +0200 (CEST) From: Herve Quiroz X-X-Sender: rv@puget.esil.univ-mrs.fr To: Ernst de Haan In-Reply-To: <200309111621.31123.ernst.dehaan@nl.wanadoo.com> Message-ID: <20030911172451.H57407@puget.esil.univ-mrs.fr> References: <20030909215210.GA5404@grimoire.chen.org.nz> <20030911141020.GB22265@watt.intra.caraldi.com> <200309111621.31123.ernst.dehaan@nl.wanadoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: java@FreeBSD.org 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: Thu, 11 Sep 2003 16:01:20 -0000 I agree with this. IMHO 'classpath-config' would be a good name for such a tool. With the following options (or similar with different names): --all -> CLASSPATH contains all JARs and subdirs from $JAVASHAREDIR. --add -> Add selected paths and JARs in the current CLASSPATH variable instead of overriding it. --with-lib= -> include the specified JAR in the CLASSPATH. For example, '--with-lib=junit' would add the first JAR file whose name starts with 'junit' in the JAVASHAREDIR directory. The first two options are mandatory. The third could just be implemented later. I only listed it here to demonstrate the usefulness of such a tool for efficient java application coding/running. Herve On Thu, 11 Sep 2003, Ernst de Haan wrote: > > The algorithm/script fragment that adds FreeBSD-specific jars to the > > classpath is interesting *also* outside of Ant. Why not extract that > > part and make it a shell script that could even be sourced within Ant if > > the specific env variable is set? > > You are right. We should indeed provide a separate script for this. Question > is how we distribute this script. But then it shouldn't be treated as part > of Ant either. > > What if we make this a separate port, make Ant dependent on it, and *also* > change the ant shell script to recognize an environment variable that will > make it call that script? > > Ernst