Tomcat 8 Source Code Analysis[1] Code Preparation

来源:互联网 发布:达芬奇调色软件12.5 编辑:程序博客网 时间:2024/06/05 05:59

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)


0 0
原创粉丝点击