You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2020/02/21 10:41:59 UTC

svn commit: r1874308 - in /tomcat/site/trunk: build.properties.default build.xml

Author: markt
Date: Fri Feb 21 10:41:58 2020
New Revision: 1874308

URL: http://svn.apache.org/viewvc?rev=1874308&view=rev
Log:
Add support for Tomcat 10 documentation

Modified:
    tomcat/site/trunk/build.properties.default
    tomcat/site/trunk/build.xml

Modified: tomcat/site/trunk/build.properties.default
URL: http://svn.apache.org/viewvc/tomcat/site/trunk/build.properties.default?rev=1874308&r1=1874307&r2=1874308&view=diff
==============================================================================
--- tomcat/site/trunk/build.properties.default (original)
+++ tomcat/site/trunk/build.properties.default Fri Feb 21 10:41:58 2020
@@ -32,13 +32,14 @@ base.path=/usr/share/java
 #base.path=C:/path/to/the/repository
 #base.path=/usr/local
 
-tomcat.loc=http://www.apache.org/dist/tomcat
+tomcat.loc=https://downloads.apache.org/tomcat
 
 
 # ----- Tomcat versions -----
 tomcat70=7.0.100
 tomcat85=8.5.51
 tomcat90=9.0.31
+tomcat100=10.0.0-M1
 
 # ----- Download destination -----
 tomcat-site-docs.home=${base.path}/tomcat-site-docs/
@@ -52,3 +53,6 @@ tomcat85.home=${tomcat-site-docs.home}/$
 
 tomcat90.loc=${tomcat.loc}/tomcat-9/v${tomcat90}/bin/apache-tomcat-${tomcat90}-fulldocs.tar.gz 
 tomcat90.home=${tomcat-site-docs.home}/${tomcat90}
+
+tomcat100.loc=${tomcat.loc}/tomcat-10/v${tomcat100}/bin/apache-tomcat-${tomcat100}-fulldocs.tar.gz 
+tomcat100.home=${tomcat-site-docs.home}/${tomcat100}

Modified: tomcat/site/trunk/build.xml
URL: http://svn.apache.org/viewvc/tomcat/site/trunk/build.xml?rev=1874308&r1=1874307&r2=1874308&view=diff
==============================================================================
--- tomcat/site/trunk/build.xml (original)
+++ tomcat/site/trunk/build.xml Fri Feb 21 10:41:58 2020
@@ -157,6 +157,28 @@
     </copy>
   </target>
 
+  <target name="release-10"
+          depends="docs"
+          description="Used after a release to update the docs for Tomcat 10.0">
+
+  	<!-- Download the latest version -->
+    <antcall target="downloadgz">
+      <param name="sourcefile" value="${tomcat100.loc}"/>
+      <param name="destfile" value="${tomcat100.home}/tomcat-10.0-doc/index.html"/>
+      <param name="destdir" value="${tomcat100.home}"/>
+    </antcall>
+
+    <!-- Delete the old version -->
+    <delete dir="${docs.dest}/tomcat-10.0-doc"/>
+
+    <!-- Copy the latest version -->
+    <copy todir="${docs.dest}/tomcat-10.0-doc" >
+      <fileset dir="${tomcat100.home}/tomcat-10.0-doc" >
+        <exclude name="/WEB-INF/**" />
+      </fileset>
+    </copy>
+  </target>
+
   <target name="release-native"
           depends="docs"
           description="Used after a 1.2.x release to update the docs for Tomcat Native">



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org