ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject How to include multiple classpath directories ?
Date Thu, 27 Jun 2002 15:26:16 GMT
Hi all,
I'd like to use ant to compile classes that use EJB and
Web Services jars. As I don't want to include all the
jars I need, I'd like just to give JBoss lib's dir and
JWservicesPack lib's dir.

I have tried with this target but it only includes JBoss libs...

<target name="compile" >
     <path id="additional.path">
            <fileset dir="C:\jwsdp-1_0-ea2\server\lib">
               <include name="**/*.jar"/>
       <path id="base.path">
            <fileset dir="c:\JBoss-2.4.4\lib">
               <include name="**/*.jar"/>
           <!-- append the external classpath lastly -->
           <pathelement path="${additional.path}" />


   <javac srcdir="."  destdir="." includes="" 
     classpathref="base.path"   />

Please can anybody tell me how to include all jars found in JBoss & 
JWSDP dir without listing them all ??
Thanks a lot
View raw message