You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2021/03/06 11:40:50 UTC
[jclouds-site] branch master updated: Correct handling of Java
versions > 9
This is an automated email from the ASF dual-hosted git repository.
gaul 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 8c048b9 Correct handling of Java versions > 9
8c048b9 is described below
commit 8c048b93662aad9b16e219d7726b6426e74a1cf3
Author: Andrew Gaul <ga...@apache.org>
AuthorDate: Sat Mar 6 20:39:21 2021 +0900
Correct handling of Java versions > 9
---
deploy-javadoc.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/deploy-javadoc.sh b/deploy-javadoc.sh
index 1497058..3eb68ef 100755
--- a/deploy-javadoc.sh
+++ b/deploy-javadoc.sh
@@ -3,7 +3,7 @@
set -o errexit
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-JAVA_VERSION=`mvn --version | grep "Java version" | awk '{print $3}' | sed 's/,//' | cut -c 3`
+JAVA_VERSION=`mvn --version | grep "Java version" | awk '{print $3}' | sed 's/,//' | cut -d. -f1`
if [ "$JAVA_VERSION" -lt "7" ]; then
echo "Use Java 1.7+ to generate the Javadoc."