ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conelly, Luis (GNF, Contractor)" <Luis.Cone...@gnf.com>
Subject RE: adding Classpath...
Date Fri, 26 Mar 2004 17:38:56 GMT
Try something like:

    <target name="compile" description="builds up the classes">
        <javac srcdir="${param.src}" destdir="${param.build}"
           fork="yes"
           executable="${param.jdk.home}/bin/javac.exe"
           listfiles="${param.listing}"
           excludes="${param.list.excludes}">
           <classpath>
               <fileset dir="${my.lib}" id="project.classpath">
                   <include name="**/*.jar"/>
                   <include name="**/*.zip"/>
               </fileset>
           </classpath>
      </javac>

-----Original Message-----
From: Zakaria khabot [mailto:z.khabot@ced.mfie.gov.ma]
Sent: Friday, March 26, 2004 11:35 AM
To: Ant Users List
Subject: adding Classpath...


Hi all,
How to add many files (.jar) while compiling a directory using ANT.
I wrote :
<javac srcdir="${src}/java" destdir="${dist}/WEB-INF/classes"
classpath="D:/Projets/Projet1/lib/*.jar" />

But it doesn't work.

Thanks for all...



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message