From: remm
-Building Tomcat from SVN is very easy, and is the first step to contributing to
+Building Apache Tomcat from SVN is very easy, and is the first step to contributing to
Tomcat. The following is a step by step TODO list.
-The default distribution of Tomcat 5.5.x requires a 5.0 or later JDK. Tomcat
-can be built using a 1.4.x JDK but you will need to copy the contents of the
-compat directory (created by the build process) to your build directory before
-Tomcat will start.
-
The Sun JDK can be downloaded here.
@@ -42,10 +35,10 @@ directory into which you installed the JDK release.
-Download a binary distribution of Ant 1.6.2 or later from
+Download a binary distribution of Ant 1.6.5 or later from
here.
+ Tomcat SVN repository URL:
+
+ Download a source package from:
+
+ Checkout the source using SVN, selecting the desired version or
+ branch (current development source is at
+
-Download the main build.xml script from here.
-
-Create a new directory, and copy the newly download build.xml to it. This
- directory will be referred to as the ${tomcat.source} directory in the rest
- of this document.
-
-Go to that directory, and do:
+Use the following commands:
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/
+ http://tomcat.apache.org/download-60.cgi
+ http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/), or
+ unpack the source package. The location where the source has been
+ placed will be referred as ${tomcat.source}.
+
cd ${tomcat.source}
+ ant download
ant
-WARNING: Running this command will checkout the Tomcat 5 sources from SVN, as
- well as download binaries to the
-It is recommended to regularly update the downloaded Tomcat 5 sources.
-To do this, execute the following commands:
-
-
-For a quick rebuild of only modified code you can use:
-
diff --git a/webapps/docs/extras.xml b/webapps/docs/extras.xml
new file mode 100644
index 000000000..be2caafc8
--- /dev/null
+++ b/webapps/docs/extras.xml
@@ -0,0 +1,57 @@
+
+
+]>
+
+ A number of additional third party components may be used with Apache Tomcat, but are not
+ provided directly in the downlad bundle for a variety of reasons. These may be built by
+ users should they need it.
+
+ The additional components are built using the The build process is the following:
+ Tomcat uses a package renamed commons-logging API implementation which is hardcoded to use
+ the java.util.logging API. The commons-logging additional component builds a full fledged
+ package renames commons-logging implementation which can be used to replace the implementation
+ provided with Tomcat. See the logging page for usage instructions.
+
+ By default, only java.util.logging is available for the core Tomcat, as Tomcat uses
+ a package renamed logging implementation which is hardcoded for that logger. Usage of
+ alternate loggers is available after building the extra components (see
+ the extras components documentation), which includes
+ a full commons-logging implementation.
+
Tomcat 6.0 uses
@@ -61,7 +71,7 @@
/usr/share/java directory.
+WARNING: Running this command will download binaries to the
+ /usr/share/java directory.
Make sure this is appropriate to do so on your computer. On Windows,
this usually corresponds to the C:\usr\share\java directory,
unless Cygwin is used. Read below to customize the directory used
@@ -119,29 +125,6 @@ The build can be controlled by creating a ${tomcat.source}/build.properties
-
-
- cd ${tomcat.source}
- ant checkout
-
-
-
- cd ${tomcat.source}
- ant build
-extras.xml Ant script which is
+ present in the source bundle of Tomcat.
+
+
+
+ ant -f extras.xml to run the build scriptoutput/extras folder
diff --git a/webapps/docs/project.xml b/webapps/docs/project.xml
index 2ac5084ea..1ee08378b 100644
--- a/webapps/docs/project.xml
+++ b/webapps/docs/project.xml
@@ -45,6 +45,8 @@
log4j.appender.R=org.apache.log4j.RollingFileAppender
@@ -75,12 +85,16 @@
$CATALINA_HOME/bin/tomcat-juli.jar with
+ output/extras/tomcat-juli.jar.$CATALINA_HOME/bin/tomcat-juli-adapters.jar in
+ $CATALINA_HOME/lib.