- Build the docs webapp.
authorremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 3 Aug 2006 13:18:30 +0000 (13:18 +0000)
committerremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 3 Aug 2006 13:18:30 +0000 (13:18 +0000)
- Docs webapps fixes.
- Small NSIS update to version 2.18.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@428400 13f79535-47bb-0310-9956-ffa450edef68

build.properties.default
build.xml
res/tomcat.nsi
webapps/docs/api/index.html
webapps/docs/appdev/project.xml
webapps/docs/architecture/project.xml
webapps/docs/config/project.xml
webapps/docs/funcspecs/project.xml
webapps/docs/project.xml
webapps/examples/jsp/jsp2/el/implicit-objects.jsp

index 584eb16..07f3030 100644 (file)
@@ -59,9 +59,9 @@ commons-collections.loc=${base-jakarta.loc}/commons/collections/binaries/commons
 commons-collections-src.loc=${base-jakarta.loc}/commons/collections/source/commons-collections-3.1-src.tar.gz\r
 \r
 # ----- NSIS, version 2.0 or later -----\r
-nsis.home=${base.path}/nsis-2.0\r
+nsis.home=${base.path}/nsis-2.18\r
 nsis.exe=${nsis.home}/makensis.exe\r
 nsis.installoptions.dll=${nsis.home}/Plugins/InstallOptions.dll\r
 nsis.nsexec.dll=${nsis.home}/Plugins/nsExec.dll\r
-nsis.nsisdl.dll=${nsis.home}/Plugins/nsisdl.dll\r
-nsis.loc=${base-sf.loc}/nsis/nsis20.exe\r
+nsis.nsisdl.dll=${nsis.home}/Plugins/NSISdl.dll\r
+nsis.loc=${base-sf.loc}/nsis/nsis-2.18-setup.exe\r
index 0853f89..12b5ffe 100644 (file)
--- a/build.xml
+++ b/build.xml
     <!-- Catalina Main JAR File -->
     <jar jarfile="${catalina.jar}">
       <fileset dir="${tomcat.classes}">
+        <include name="org/apache/AnnotationProcessor.class" />
         <include name="org/apache/catalina/**" />
         <include name="org/apache/naming/**" />
         <!-- Javadoc and i18n exclusions -->
     <!-- Jasper Implementation JAR File -->
     <jar  jarfile="${jasper.jar}">
       <fileset dir="${tomcat.classes}">
+        <include name="org/apache/AnnotationProcessor.class" />
         <include name="org/apache/jasper/**" />
         <!-- Javadoc and i18n exclusions -->
         <exclude name="**/package.html" />
 
   </target>
 
-  <target name="deploy" depends="build-only">
+  <target name="build-docs">
+
+    <copy todir="${tomcat.build}/webapps">
+      <fileset dir=".">
+        <include name="BUILDING.txt"/>
+        <include name="README.txt"/>
+        <include name="RUNNING.txt"/>
+      </fileset>
+      <fileset dir="webapps">
+        <include name="docs/images/**"/>
+        <include name="docs/**/*.html"/>
+        <include name="docs/WEB-INF/**"/>
+        <include name="docs/appdev/*.txt"/>
+        <include name="docs/appdev/sample/**"/>
+      </fileset>
+        <fileset dir="webapps">
+          <include name="docs/architecture/**"/>
+          <exclude name="docs/architecture/*.xml"/>
+        </fileset>
+    </copy>
+
+    <copy   tofile="${tomcat.build}/webapps/docs/appdev/sample/build.xml"
+              file="webapps/docs/appdev/build.xml.txt"/>
+       
+       <mkdir dir="${tomcat.build}/webapps/docs/funcspec" />
+       
+       <!-- XSL processing -->
+    <style basedir="webapps/docs"
+           destdir="${tomcat.build}/webapps/docs"
+         extension=".html"
+             style="webapps/docs/tomcat-docs.xsl"
+          excludes="build.xml project.xml"
+          includes="*.xml">
+      <param name="relative-path" expression="."/>
+    </style>
+    <style basedir="webapps/docs/appdev"
+           destdir="${tomcat.build}/webapps/docs/appdev"
+         extension=".html"
+             style="webapps/docs/tomcat-docs.xsl"
+          excludes="project.xml"
+          includes="*.xml">
+      <param name="relative-path" expression=".."/>
+    </style>
+    <style basedir="webapps/docs/funcspecs"
+           destdir="${tomcat.build}/webapps/docs/funcspecs"
+         extension=".html"
+             style="webapps/docs/tomcat-docs.xsl"
+          excludes="project.xml"
+          includes="*.xml">
+      <param name="relative-path" expression="../.."/>
+    </style>
+    <style basedir="webapps/docs/config"
+           destdir="${tomcat.build}/webapps/docs/config"
+         extension=".html"
+             style="webapps/docs/tomcat-docs.xsl"
+          excludes="project.xml"
+          includes="*.xml">
+      <param name="relative-path" expression=".."/>
+    </style>
+    <style basedir="webapps/docs/architecture"
+           destdir="${tomcat.build}/webapps/docs/architecture"
+         extension=".html"
+             style="webapps/docs/tomcat-docs.xsl"
+          excludes="project.xml"
+          includes="*.xml">
+      <param name="relative-path" expression=".."/>
+    </style>
+
+       <!-- Print friendly version -->
+       <mkdir dir="${tomcat.build}/webapps/docs/printer" />
+    <copy todir="${tomcat.build}/webapps/docs/printer">
+      <fileset dir=".">
+        <include name="BUILDING.txt"/>
+        <include name="README.txt"/>
+        <include name="RUNNING.txt"/>
+      </fileset>
+    </copy>
+       <mkdir dir="${tomcat.build}/webapps/docs/appdev/printer" />
+    <copy todir="${tomcat.build}/webapps/docs/appdev/printer">
+        <fileset dir="webapps">
+          <include name="docs/appdev/*.txt"/>
+        </fileset>
+    </copy>
+       <mkdir dir="${tomcat.build}/webapps/docs/funcspecs/printer" />
+    <mkdir dir="${tomcat.build}/webapps/docs/architecture/printer"/>
+    <mkdir dir="${tomcat.build}/webapps/docs/config/printer"/>
+
+       <style basedir="webapps/docs"
+           destdir="${tomcat.build}/webapps/docs/printer"
+         extension=".html"
+             style="webapps/docs/tomcat-docs.xsl"
+          excludes="build.xml project.xml"
+          includes="*.xml">
+      <param name="relative-path" expression="./.."/>
+      <param name="project-menu" expression="nomenu"/>
+    </style>
+    <style basedir="webapps/docs/appdev"
+           destdir="${tomcat.build}/webapps/docs/appdev/printer"
+         extension=".html"
+             style="webapps/docs/tomcat-docs.xsl"
+          excludes="project.xml"
+          includes="*.xml">
+      <param name="relative-path" expression="../.."/>
+      <param name="project-menu" expression="nomenu"/>
+    </style>
+    <style basedir="webapps/docs/funcspecs"
+           destdir="${tomcat.build}/webapps/docs/funcspecs/printer"
+         extension=".html"
+             style="webapps/docs/tomcat-docs.xsl"
+          excludes="project.xml"
+          includes="*.xml">
+      <param name="relative-path" expression="../../.."/>
+      <param name="project-menu" expression="nomenu"/>
+    </style>
+    <style basedir="webapps/docs/config"
+           destdir="${tomcat.build}/webapps/docs/config/printer"
+         extension=".html"
+             style="webapps/docs/tomcat-docs.xsl"
+          excludes="project.xml"
+          includes="*.xml">
+      <param name="relative-path" expression="../.."/>
+      <param name="project-menu" expression="nomenu"/>
+    </style>
+    <style basedir="webapps/docs/architecture"
+           destdir="${tomcat.build}/webapps/docs/architecture/printer"
+         extension=".html"
+             style="webapps/docs/tomcat-docs.xsl"
+          excludes="project.xml"
+          includes="*.xml">
+      <param name="relative-path" expression="../.."/>
+      <param name="project-menu" expression="nomenu"/>
+    </style>
+
+  </target>
+
+  <target name="deploy" depends="build-only,build-docs">
 
     <copy file="${commons-logging-api.jar}" todir="${tomcat.build}/bin" />
 
       </fileset>
     </copy>
 
-    <!-- FIXME: Copy webapps -->
+    <!-- Copy other regular webapps -->
     <copy todir="${tomcat.build}/webapps">
       <fileset dir="webapps">
         <include name="ROOT/**"/>
-        <include name="docs/**"/>
         <include name="examples/**"/>
         <include name="manager/**"/>
         <include name="host-manager/**"/>
index 56e7f1b..c9c7838 100644 (file)
@@ -4,9 +4,7 @@
 \r
   ;Compression options\r
   CRCCheck on\r
-  SetCompress force\r
-  SetCompressor lzma\r
-  SetDatablockOptimize on\r
+  SetCompressor /SOLID lzma\r
 \r
   Name "Apache Tomcat"\r
 \r
index 780a75a..e217825 100644 (file)
@@ -11,7 +11,7 @@ Tomcat's internal javadoc is no longer installed by default. Download and instal
 the "fulldocs" package to get it.
 
 You can also access the javadoc online in the Tomcat 
-<a href="http://jakarta.apache.org/tomcat/tomcat-6.0-doc/">documentation bundle</a>.
+<a href="http://tomcat.apache.org/tomcat-6.0-doc/">documentation bundle</a>.
 
 </body>
 </html>
index 7ce8b24..104ab09 100644 (file)
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <project name="Application Developer's Guide"
-        href="http://jakarta.apache.org/tomcat/">
+        href="http://tomcat.apache.org/">
 
     <title>Application Developer's Guide</title>
 
     <logo href="/images/tomcat.gif">
-      The Tomcat Servlet/JSP Container
+      The Apache Tomcat Servlet/JSP Container
     </logo>
 
     
index b7d25b3..b6afb4e 100644 (file)
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<project name="Tomcat Architecture"
-        href="http://jakarta.apache.org/tomcat/">
+<project name="Apache Tomcat Architecture"
+        href="http://tomcat.apache.org/">
 
-    <title>Tomcat Architecture</title>
+    <title>Apache Tomcat Architecture</title>
 
     <logo href="/images/tomcat.gif">
-      The Tomcat Servlet/JSP Container
+      The Apache Tomcat Servlet/JSP Container
     </logo>
 
     
index 4712b81..1dc8809 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <project name="Apache Tomcat Configuration Reference"
-        href="http://jakarta.apache.org/tomcat/">
+        href="http://tomcat.apache.org/">
 
   <title>Apache Tomcat Configuration Reference</title>
 
index b265a07..341254a 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <project name="Catalina Functional Specifications"
-        href="http://jakarta.apache.org/tomcat/">
+        href="http://tomcat.apache.org/">
 
     <title>Catalina Functional Specifications</title>
 
index 7e9bbe3..2ac5084 100644 (file)
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<project name="Apache Tomcat Documentation - Top Level Directory"
-        href="http://jakarta.apache.org/tomcat/">
+<project name="Apache Tomcat Documentation"
+        href="http://tomcat.apache.org/">
 
-    <title>The Apache Tomcat 6.0 Servlet/JSP Container</title>
+    <title>Apache Tomcat 6.0</title>
 
     <logo href="/images/tomcat.gif">
       The Apache Tomcat Servlet/JSP Container
@@ -13,7 +13,7 @@
 
     <menu name="Links">
         <item name="Docs Home"             href="index.html"/>
-        <item name="FAQ"                   href="../faq" />
+        <item name="FAQ"                   href="http://tomcat.apache.org/faq" />
     </menu>
 
     <menu name="User Guide">
               href="monitoring.html"/>
         <item name="22) Logging"            href="logging.html"/>
         <item name="23) APR"                href="apr.html"/>
-        <item name="24) Asynchronous APIs"  href="async.html"/>
+        <item name="24) Advanced IO"        href="aio.html"/>
     </menu>
 
     <menu name="Reference">
         <item name="Release Notes"         href="RELEASE-NOTES.txt"/>
-        <item name="Apache Tomcat Configuration"  href="config/index.html"/>
+        <item name="Configuration"         href="config/index.html"/>
+        <item name="Javadocs"              href="api/index.html"/>
         <item name="JK 1.2 Documentation"      
-              href="http://jakarta.apache.org/tomcat/connectors-doc/"/>
-        <item name="Servlet API Javadocs"  href="servletapi/index.html"/>
-        <item name="JSP API Javadocs"      href="jspapi/index.html"/>
+              href="http://tomcat.apache.org/connectors-doc/"/>
     </menu>
 
     <menu name="Apache Tomcat Development">
         <item name="Changelog"             href="changelog.html"/>
         <item name="Status"                href="status.html"/>
         <item name="Developers"            href="developers.html"/>
-        <item name="Functional Specs."     href="catalina/funcspecs/index.html"/>
-        <item name="Apache Tomcat Javadocs"       href="catalina/docs/api/index.html"/>
-        <item name="Apache Jasper Javadocs"       href="jasper/docs/api/index.html"/>
         <item name="Architecture"          href="architecture/index.html" />
+        <item name="Functional Specs."     href="funcspecs/index.html"/>
     </menu>
 
     </body>
index 992aa1d..f13a05d 100644 (file)
          </tr>
          <tr>
            <td>\${header["host"]}</td>
-           <td>${header["host"]}</td>
+           <td>${fn:escapeXml(header["host"])}&nbsp;</td>
          </tr>
          <tr>
            <td>\${header["accept"]}</td>
-           <td>${header["accept"]}</td>
+           <td>${fn:escapeXml(header["accept"])}&nbsp;</td>
          </tr>
          <tr>
            <td>\${header["user-agent"]}</td>
-           <td>${header["user-agent"]}</td>
+           <td>${fn:escapeXml(header["user-agent"])}&nbsp;</td>
          </tr>
        </table>
       </code>