ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Tomcat <>
Subject RE: Adding a directory of jars to the classpath
Date Thu, 05 Sep 2002 09:15:57 GMT
On Wed, 2002-09-04 at 23:02, Kervin, Stephen wrote:
> We use a "lib" folder. But unfortunatly you still need to specify each jar
> seperataly on the class path, I have not seen a way to java to recursive a
> directory looking for jars. I tend to use a classpath from a
> file this way it is easily configurable and updateable. 

This is what I'm using for now:

  <target name="compile" depends="prepare" description="Compiles all
source code.">
    <javac srcdir="${src.dir}" destdir="${build.classes}"
        <fileset dir="${applibs}">
	  <include name="**/*.jar"/>

It grabs all the jars in ${applibs}.  I can then set up my deploy target
to copy those jars over to webapps/ROOT/WEB-INF/libs if they change and
I should be set, right?  Is this the best way to do this?

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message