Zach Calvert wrote:
> What are the exact steps of building the tomcat server from source?  By
> that I mean, where do you go to get the source, including the dependent
> jars (commons, jasper, etc), and then use ant to build Tomcat itself?

Here's what I do on Windows:
- Create a build directory, say "E:\tmp\Tomcat-build".
- Download http://tomcat.apache.org/tomcat-5.5-doc/build.xml and put it in the 
build directory created above.
- Optional: If you want to have the binary dependencies downloaded to, say
"E:\tmp\Tomcat-build\binary-libs", instead of "C:\usr\share\java" create a 
file named build.properties in the build directory containing the line
base.path=E:/tmp/Tomcat-build/binary-libs
- In the console, change into the build directory and do
ant
- If you see a message asking you to accept the certificate for the asf 
repository (which you can't since svn is started by ant) do for example
svn ls https://svn.apache.org/repos/asf/tomcat/build/tc5.5.x
and accept the certifacte permanently.
Run
ant
again. The Tomcat source and the binary libs should now be checked out and the 
main part of the build process should also have run.
- Change into the build directory:
cd build
- If you changed the location where the binary libs are stored by creating a 
build.properties file (see above), you'll also have to create a 
build.properties file here, containing at least the same base.path line.
- Build Tomcat:
ant dist
Now, a directory called "dist" (E:\tmp\Tomcat-build\build\dist) should have 
been created that contains a binary Tomcat release.
Doing
ant release
will create a directory containing all the source and binary archives like the 
ones you can download from the Tomcat website.

Regards
  mks



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to