Skip to content

Commit

Permalink
update scripting library
Browse files Browse the repository at this point in the history
  • Loading branch information
mpern committed Feb 8, 2021
1 parent 9f854ea commit 6e636b5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
23 changes: 19 additions & 4 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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
12 changes: 12 additions & 0 deletions impl/MessageImpl.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6e636b5

Please sign in to comment.