I am studying tomcat 7 source code. I found that the comments for the main function in Bootstrap indicate it is for test only:
/**
* Main method, used for testing only.
*
* @param args Command line arguments to be processed
*/
public static void main(String args[]) {
I think it is the entry point for tomcat server. Is there any reason for this comments?
Some of the Tomcat source code dates back to the origins of the project. The purpose of some classes has changed over time but the comments haven't always kept up. This looks like one of those cases. Bootstrap is indeed the entry point for a Tomcat instance started from the command line. I'll get the comments updated.