Skip to content

Commit 6e636b5

Browse files
committed
update scripting library
1 parent 9f854ea commit 6e636b5

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

bootstrap.sh

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# ref. https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/LATEST/en-US/03b32eb2c5c249f0a59bcd27c44d1e4e.html
44
GROOVY_VERSION=2.4.12
55
echo "Setting up Groovy runtime $GROOVY_VERSION..."
6-
curl -O "https://archive.apache.org/dist/groovy/$GROOVY_VERSION/distribution/apache-groovy-binary-$GROOVY_VERSION.zip"
6+
curl -f -O "https://archive.apache.org/dist/groovy/$GROOVY_VERSION/distribution/apache-groovy-binary-$GROOVY_VERSION.zip"
77
unzip -qo apache-groovy-binary*.zip
88
echo "Setting up Groovy runtime $GROOVY_VERSION... DONE"
99

@@ -12,7 +12,22 @@ echo "Downloading SCPI APIs..."
1212
mkdir -p 'lib'
1313
(
1414
cd lib || exit 1
15-
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
16-
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
15+
curl -f -O --cookie 'eula_3_1_agreed=tools.hana.ondemand.com/developer-license-3_1.txt' \
16+
'https://tools.hana.ondemand.com/additional/com.sap.it.public.generic.api-2.22.0.jar'
17+
if [ "$?" -ne "0" ]; then
18+
echo "Generic API not found; update links with latest version from https://tools.hana.ondemand.com/#cloudintegration"
19+
exit 1
20+
fi
21+
curl -f -O --cookie 'eula_3_1_agreed=tools.hana.ondemand.com/developer-license-3_1.txt' \
22+
'https://tools.hana.ondemand.com/additional/cloud.integration.script.apis-2.7.1.jar'
23+
if [ "$?" -ne "0" ]; then
24+
echo "Scripting API not found; update links with latest version from https://tools.hana.ondemand.com/#cloudintegration"
25+
exit 1
26+
fi
1727
)
18-
echo "Downloading SCPI APIs... DONE"
28+
if [ "$?" -ne "0" ]; then
29+
echo "Downloading SCPI APIs... FAILED"
30+
exit 1
31+
else
32+
echo "Downloading SCPI APIs... DONE"
33+
fi

impl/MessageImpl.groovy

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ class MessageImpl implements Message {
9898
throw new RuntimeException()
9999
}
100100

101+
void setSoapHeaders(java.util.List l) {
102+
throw new RuntimeException()
103+
}
104+
105+
void clearSoapHeaders() {
106+
throw new RuntimeException()
107+
}
108+
109+
java.util.List getSoapHeaders() {
110+
throw new RuntimeException()
111+
}
112+
101113
@Override
102114
String toString() {
103115
def result = "MessageImpl\n"

0 commit comments

Comments
 (0)