You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/11/14 15:40:33 UTC

[commons-rng] branch master updated: Do not perform a full website svn checkout.

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git


The following commit(s) were added to refs/heads/master by this push:
     new 91252e4  Do not perform a full website svn checkout.
91252e4 is described below

commit 91252e4b64242852f152aafe493821b8c00a2efb
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Nov 14 15:40:29 2019 +0000

    Do not perform a full website svn checkout.
---
 .gitignore |  2 +-
 pom.xml    | 52 +++++++---------------------------------------------
 2 files changed, 8 insertions(+), 46 deletions(-)

diff --git a/.gitignore b/.gitignore
index e2ae074..7b6ac0a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,7 +6,7 @@ bin
 target
 /build
 /lib
-site-content
+site-content*
 .ekstazi
 *.class
 *.iml
diff --git a/pom.xml b/pom.xml
index 02f4788..d1bfbe0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -431,12 +431,12 @@
                 <configuration>
                   <target name="empty-checkout" unless="${perform.site.checkout}">
                     <mkdir dir="${commons.scmPubCheckoutDirectory}"/>
+                    <echo file="${commons.scmPubCheckoutDirectory}${file.separator}README"
+                          message="The '${commons.scmPubCheckoutDirectory}' directory is empty in child modules."/>
                   </target>
                 </configuration>
               </execution>
-              <!-- Checkout the site using SVN.
-                   Avoid download of the archived Javadocs for the modules.
-                   This includes the legacy javadocs for commons-rng-examples release 1.0. -->
+              <!-- Checkout the top-level directory of the site using SVN. -->
               <execution>
                 <id>prepare-checkout</id>
                 <phase>pre-site</phase>
@@ -450,48 +450,10 @@
                       <arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}" />
                     </exec>
 
-                    <!-- Top level for each module -->
-                    <exec executable="svn">
-                      <arg line="checkout --depth immediates ${commons.scmPubUrl}/commons-rng-client-api ${commons.scmPubCheckoutDirectory}/commons-rng-client-api" />
-                    </exec>
-                    <exec executable="svn">
-                      <arg line="checkout --depth immediates ${commons.scmPubUrl}/commons-rng-core ${commons.scmPubCheckoutDirectory}/commons-rng-core" />
-                    </exec>
-                    <exec executable="svn">
-                      <arg line="checkout --depth immediates ${commons.scmPubUrl}/commons-rng-simple ${commons.scmPubCheckoutDirectory}/commons-rng-simple" />
-                    </exec>
-                    <exec executable="svn">
-                      <arg line="checkout --depth immediates ${commons.scmPubUrl}/commons-rng-sampling ${commons.scmPubCheckoutDirectory}/commons-rng-sampling" />
-                    </exec>
-                    <exec executable="svn">
-                      <arg line="checkout --depth immediates ${commons.scmPubUrl}/commons-rng-examples ${commons.scmPubCheckoutDirectory}/commons-rng-examples" />
-                    </exec>
-
-                    <pathconvert pathsep=" " property="javadocsDirs">
-                      <dirset dir="${commons.scmPubCheckoutDirectory}" includes="commons-${commons.componentid}-*/javadocs" />
-                    </pathconvert>
-                    <pathconvert pathsep=" " property="nonModuleDirs">
-                      <dirset dir="${commons.scmPubCheckoutDirectory}" includes="*" excludes="commons-${commons.componentid}-*" />
-                    </pathconvert>
-
-                    <!-- Do not download the archived javadocs. This will delete the 'javadocs' directory. -->
-                    <exec executable="svn">
-                      <arg line="update --set-depth exclude ${javadocsDirs}" />
-                    </exec>
-
-                    <pathconvert pathsep=" " property="modulesDirsNoJavadocs">
-                      <dirset dir="${commons.scmPubCheckoutDirectory}" includes="commons-${commons.componentid}-*/*" />
-                    </pathconvert>
-
-                    <!-- Update the modules without the javadocs. -->
-                    <exec executable="svn">
-                      <arg line="update --set-depth infinity ${modulesDirsNoJavadocs}" />
-                    </exec>
-
-                    <!-- Update the remaining non-module directories -->
-                    <exec executable="svn">
-                      <arg line="update --set-depth infinity ${nonModuleDirs}" />
-                    </exec>
+                    <echo file="${commons.scmPubCheckoutDirectory}.README">The '${commons.scmPubCheckoutDirectory}' directory is controlled by "subversion".
+Running "svn up" will download *all* the files of the live web site at
+    https://commons.apache.org/rng
+                    </echo>
                   </target>
                 </configuration>
               </execution>