ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Lalor <bla...@deltafaucet.com>
Subject Re: adding Classpath...
Date Fri, 26 Mar 2004 17:40:08 GMT

On Mar 26, 2004, at 12:35 PM, Zakaria khabot wrote:

> 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.

<javac ...>
   <classpath>
	<fileset dir="${web.home}/WEB-INF/lib">
	  <include name="**/*.jar" />
	</fileset>
   </classpath>
</javac>


 From http://ant.apache.org/manual/CoreTasks/javac.html:
	<javac>'s srcdir, classpath, sourcepath, bootclasspath, and extdirs 
attributes are path-	like structures and can also be set via nested 
<src>, <classpath>, <sourcepath>, 	<bootclasspath> and <extdirs>

elements, respectively.

-- 
Brian Lalor
Web Portal Analyst
Delta Faucet Co.
blalor@deltafaucet.com
(v) 317-573-3461



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


Mime
View raw message