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

nacx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jclouds-site.git


The following commit(s) were added to refs/heads/master by this push:
     new b43b0f2  Fix javadoc generation script (#16)
b43b0f2 is described below

commit b43b0f245e5c7821750303b19ff86ea49b12b28a
Author: Ignasi Barrera <n...@apache.org>
AuthorDate: Sun Mar 7 18:39:09 2021 +0100

    Fix javadoc generation script (#16)
---
 deploy-javadoc.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/deploy-javadoc.sh b/deploy-javadoc.sh
index d979c72..a58f6a0 100755
--- a/deploy-javadoc.sh
+++ b/deploy-javadoc.sh
@@ -3,9 +3,10 @@
 set -o errexit
 
 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-JAVA_VERSION=`mvn --version | grep "Java version" | awk '{print $3}' | sed 
's/,//' | cut -d. -f1`
 
-if [ "$JAVA_VERSION" -lt "7" ]; then
+
+JAVA_VERSION=`java -version 2>&1 | sed -n ';s/.* version 
"\(.*\)\.\(.*\)\..*"/\1\2/p;'`
+if [ "$JAVA_VERSION" -lt "17" ]; then
   echo "Use Java 1.7+ to generate the Javadoc."
   exit 1
 fi
@@ -46,7 +47,7 @@ for provider in ${providers}; do
 done
 
 cd jclouds
-mvn clean javadoc:aggregate -Dnotimestamp=true -DadditionalJOption=-J-Xmx512m
+mvn -Pdoc clean javadoc:aggregate -Dnotimestamp=true 
-DadditionalJOption=-J-Xmx512m
 
 
 if [ ! -d "site-content" ]; then

Reply via email to