ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Purcell" <>
Subject Complete Newbie Need Hand With Classpath
Date Fri, 03 Mar 2006 15:03:07 GMT
I am using struts so I was able to take the struts-blank starter
build.xml file as a basis.


I am creating a web-app here is my structure:








Inside the above lib directory are libs that could be included with the
webapplication if I create a war file.

I need to include a servlet.jar while compiling, but not include it in
the war file.


Also I would like to be able to point to the lib directory and have it
read all the .jar files.



I have done this:

<property name="source.root" value="WEB-INF/src"/>

  <property name="class.root" value="WEB-INF/classes" />

  <property name="lib.dir" value="WEB-INF/lib" />


<path id="project.class.path">

     <!-- include jars in the project library directory -->

     <fileset dir="${lib.dir}">

       <include name="**/*.jar" />




How do I include servlet.jar which will be somewhere like
/usr/local/servlet.jar on my dev box?

Also, how does it know that other friends may live in the
/WEB-INF/classes directory




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