title: Build eclipse project with ant
body: <p>I am developing JSR 268 compliant portlet and utility with eclipse.
  Now, the utility is designed to be a separate JAR from the portlet itself.</p>
  
  <p>Does anyone now how to write an ant build.xml that will
   1. Compile and JAR my utility class
   2. Move the JAR to the ./lib folder of the portlet
   3. Compile and maybe even delpoy the portlet to a tomcat running on localhost?</p>
  
  <p>My biggest problem right now are the build-time dependencies. I dont want to hardcode all the folders as I share this project with two other developers which are on another platform. 
  Is it possible to reuse the buildpath from eclipse?</p>
  
  <p>Thank you in advance,
  Felipe</p>