Date: Thu, 11 Sep 2003 17:50:54 +0200 (CEST) From: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr> To: Ernst de Haan <ernst.dehaan@nl.wanadoo.com> Cc: java@FreeBSD.org Subject: Re: ant script annoyances Message-ID: <20030911172451.H57407@puget.esil.univ-mrs.fr> In-Reply-To: <200309111621.31123.ernst.dehaan@nl.wanadoo.com> References: <20030909215210.GA5404@grimoire.chen.org.nz> <20030911141020.GB22265@watt.intra.caraldi.com> <200309111621.31123.ernst.dehaan@nl.wanadoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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=<library_name> -> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030911172451.H57407>