I was given by fellow to create hot-deploy and hot-deply-web-only, the last is if I only change my .jsp files, magically I donot need deploy anything if I modify the controller, just voila... it updated automatically. The first is if the last not worked, and if those still didn't work, I used the old deploy from appfuse. Here's the snipplet added in build.xml:
add this one line sintax in properties.xml:
description="unwar into the servlet container's deployment directory">
description="unwar into the servlet container's deployment directory">
Create new xml file, name it projectName.xml and write the following code (for example):
< context docbase="/home/wks-243/workspace/.../exploded/projectName" path="/projectName" >
< Context docBase="/home/wks-348/workspace/sigmalbu/exploded/sigmalbu" path="sigmalbu" />
<context docbase="/home/wks-243/workspace/.../exploded/projectName" path="/projectName">
put it in $CATALINA_HOME/conf/Catalina/localhost/ directory
Shutdown your tomcat, and then ant hot-deploy, and then ant hot-deploy-web-only, and then start your server in debugging mode from your eclipse, and hope everything's fine.
Ok, afaik, the role is to copying everything the compile result into the exploded directory, so we donot need to compile manually if there is a change, it already compile and exist in exploded directory, unless we change our .jsp file, so we need to hot-deploy-web-only.