您的位置:首页 > 运维架构 > Tomcat

Tomcat 8 Source Code Analysis[1] Code Preparation

2015-10-02 17:23 736 查看
1. make sure you have installed Java JDK and Eclipse.

2. check out source code from tomcat svn, see (http://tomcat.apache.org/svn.html) for detail info

3. I check out a tag (TOMCAT_8_0_24) into workspace, in the root dir of which, there is a build.xml for ant build



4. execute it will download dependent jar files into a default dir (set in build.properties) for building project, 

5. after building successfully(prompt in console), all class files, and resources files are deployed in output dir under root.

6. for start up tomcat, you need pass some parameters and set system properties, you can get this by studying bat file(TOMCAT_8_0_24\output\build\bin\startup.bat,catalina.bat)

7. select Bootstrap.java, and debug as java application, here is my configuration for debugging.





Here is an official doc for building tomcat (http://tomcat.apache.org/tomcat-8.0-doc/building.html)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: