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 2021/08/12 22:44:21 UTC
[commons-rng] branch master updated: Fix site checkout when svn is
not available
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 8687a0e Fix site checkout when svn is not available
8687a0e is described below
commit 8687a0eb860bd50642440e41587dfc699de126bd
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Thu Aug 12 23:44:19 2021 +0100
Fix site checkout when svn is not available
---
pom.xml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index dea9322..7a27025 100644
--- a/pom.xml
+++ b/pom.xml
@@ -462,13 +462,16 @@
<configuration>
<target name="prepare-checkout" if="${perform.site.checkout}">
<!-- Top level directory -->
- <exec executable="svn">
+ <exec executable="svn" failifexecutionfails="false">
<arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}" />
</exec>
+ <!-- Create the directory in the event that no svn exectuable is on the path -->
+ <mkdir dir="${commons.scmPubCheckoutDirectory}"/>
<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
+This is avoided by creating an empty directory when svn is not available.
</echo>
</target>
</configuration>