Objective: To use myeclipse8.5 to read the Tomcat 6 source code.
Step 1: Integrate the svn Plugin in myeclipse8.5.
Step 2: Use the check out code in the address http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunkas a Java Project
This SVN address can be found from the apache-tomcat-6.0.41-src/building.txt.
Step 3: configure the Java/RES/test directory as the source code directory.
Step 4: handle jar package dependency errors
1) Servlet/JSP and other environment Dependencies
2) Ant environment dependency
3) dependencies of Tomcat extension environments such as WebService
4) junit4 environment dependency
Step 5: The result is as follows:
This makes it easy to use the shortcut keys/code prompts of the excellent eclipse tool to highlight/and other functions to view and modify the code.
Tomcat is such a popular servlet container. I believe that by learning her source code, it will certainly benefit a lot in terms of architecture design understanding or specific encoding, such as HTTP protocol parsing.
Appendix 1: There are some fixme tips on Tomcat source code, which is really open-source