From 6e636b5d98d88aeab3c8f2a4a33bfc6c349f7e5e Mon Sep 17 00:00:00 2001 From: Markus Perndorfer Date: Mon, 8 Feb 2021 12:17:48 +0100 Subject: [PATCH] update scripting library --- bootstrap.sh | 23 +++++++++++++++++++---- impl/MessageImpl.groovy | 12 ++++++++++++ 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index dc91124..1f84f94 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -3,7 +3,7 @@ # ref. https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/LATEST/en-US/03b32eb2c5c249f0a59bcd27c44d1e4e.html GROOVY_VERSION=2.4.12 echo "Setting up Groovy runtime $GROOVY_VERSION..." -curl -O "https://archive.apache.org/dist/groovy/$GROOVY_VERSION/distribution/apache-groovy-binary-$GROOVY_VERSION.zip" +curl -f -O "https://archive.apache.org/dist/groovy/$GROOVY_VERSION/distribution/apache-groovy-binary-$GROOVY_VERSION.zip" unzip -qo apache-groovy-binary*.zip echo "Setting up Groovy runtime $GROOVY_VERSION... DONE" @@ -12,7 +12,22 @@ echo "Downloading SCPI APIs..." mkdir -p 'lib' ( cd lib || exit 1 - curl -O --cookie 'eula_3_1_agreed=tools.hana.ondemand.com/developer-license-3_1.txt' https://tools.hana.ondemand.com/additional/com.sap.it.public.generic.api-2.20.0.jar - curl -O --cookie 'eula_3_1_agreed=tools.hana.ondemand.com/developer-license-3_1.txt' https://tools.hana.ondemand.com/additional/cloud.integration.script.apis-1.36.1.jar + curl -f -O --cookie 'eula_3_1_agreed=tools.hana.ondemand.com/developer-license-3_1.txt' \ + 'https://tools.hana.ondemand.com/additional/com.sap.it.public.generic.api-2.22.0.jar' + if [ "$?" -ne "0" ]; then + echo "Generic API not found; update links with latest version from https://tools.hana.ondemand.com/#cloudintegration" + exit 1 + fi + curl -f -O --cookie 'eula_3_1_agreed=tools.hana.ondemand.com/developer-license-3_1.txt' \ + 'https://tools.hana.ondemand.com/additional/cloud.integration.script.apis-2.7.1.jar' + if [ "$?" -ne "0" ]; then + echo "Scripting API not found; update links with latest version from https://tools.hana.ondemand.com/#cloudintegration" + exit 1 + fi ) -echo "Downloading SCPI APIs... DONE" +if [ "$?" -ne "0" ]; then + echo "Downloading SCPI APIs... FAILED" + exit 1 +else + echo "Downloading SCPI APIs... DONE" +fi diff --git a/impl/MessageImpl.groovy b/impl/MessageImpl.groovy index 43ffa92..bd8c5c9 100644 --- a/impl/MessageImpl.groovy +++ b/impl/MessageImpl.groovy @@ -98,6 +98,18 @@ class MessageImpl implements Message { throw new RuntimeException() } + void setSoapHeaders(java.util.List l) { + throw new RuntimeException() + } + + void clearSoapHeaders() { + throw new RuntimeException() + } + + java.util.List getSoapHeaders() { + throw new RuntimeException() + } + @Override String toString() { def result = "MessageImpl\n"