Skip to content

Configuring Tomcat to point to source directory for auto deploy

Tired of manually copying jsp files, or classes/jars that modify frequently to your webapp directory? (even if it means to run a single ant task)

You can make Tomcat point to your source codebase and autodeploy automatically. Copy the following into your tomcat/conf/Catalina/localhost/myproject.xml






Assuming that you have your entire ‘web’ directory structure which has css, js, WEB-INF/* like structure in your workspace, you no longer need to manually deploy or run an ant task to copy your classes. Any jsp changes or controller classes will automatically be detected and redeployed if necessary

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*