Window -> Preferences -> Ant -> Runtime -> Classpath tab
You can add custom ant task jar file there.
OK, after a major bit of fiddling, here's the recommended procedure:
(0) Exit Eclipse.
(1) Do a CVS update on the hackyBuild module. You'll find that you get updated versions of various jar files in the hackyBuild/lib/ant directory, including a couple of new ones related to the hackyLoadTest package (for the hackyPerfReport task) and the hackyLoadTest package (for the hackyPerfSensor task).
(2) Do 'ant updateAntLib'. This will copy the Ant-related jar files from hackyBuild/lib/ant into the <ant>/lib directory. (Yes, this is bogus, and will be fixed this semester, I promise.)
(3) Bring up Eclipse, and go to Window -> Preferences -> Ant -> Runtime. What you want to do at this point is to click on "Ant Home..." and define it to point to your <ant> directory. If all goes according to plan, this will automatically add all of the jar files in the <ant>/lib directory (including the new Hackystat-related ones) to the "Ant Home Entries" list. It seems that under some circumstances you need to click the "Restore Defaults" and then click "Ant Home..." in order for it to re-read the contents of the directory.
Click OK, and then all of the warnings related to missing Ant task definitions in hackyBuild should go away. Theoretically.
BTW, I am now developing using Ant 1.6.1 and Tomcat 5.0.24 on my new machine. I needed to slightly modify the build.xml file because the Tomcat developers for some unknown reason decided to rename servlet.jar to servlet-api.jar in Tomcat 6, causing a compile failure. Otherwise things seem to work identically. If you want to upgrade, please go ahead and try it out, and unless anyone finds any big problems I am going to change the recommended versions for Ant and Tomcat in the installation instructions to 1.6.* and 5.0.* before the next stable release.
Cheers, Philip
