Add a non-config starter for tomcat. All you need is the classpath including tomcat...
authorcostin <costin@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 17 Jul 2008 17:14:47 +0000 (17:14 +0000)
committercostin <costin@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 17 Jul 2008 17:14:47 +0000 (17:14 +0000)
commit546c36c80365c9c39a96dcaf191e5173ff626c3e
treec9570b2f7320feb248b0d9f40480cfbe88fd2b9e
parentc6e8da3d57d8c28a0eb91ce06302e967c94a7c6c
Add a non-config starter for tomcat. All you need is the classpath including tomcat and the servlets - no config file.
There is a requirement for a temp directory - the spec requires that webapps are provided with one I believe.
It is possible to remove this or do it lazily or have some default in /tmp, if anyone wants to.

Also adding a context requires some base dir ( can be an empty one ) - so the default servlets points to something.
This can also be eliminated by setting a different default servlet - needs to be done if wanted.

It is also pretty fast - the unit tests show startup + first request in ~1 sec.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@677640 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/catalina/startup/Tomcat.java [new file with mode: 0644]
test/org/apache/catalina/startup/TomcatStartupAPITest.java [new file with mode: 0644]