forked from kaltura/kaltura-chunked-upload-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·22 lines (18 loc) · 779 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
if [ $# -lt 4 ];then
echo "Usage: $0 <service URL> <partner ID> <partner admin secret> </path/to/file> [optional entryId to update]"
exit 1
fi
SERVICE_URL=$1
PARTNER_ID=$2
ADMIN_SECRET=$3
PATH_TO_FILE=$4
if [ -n "$5" ];then
ENTRY_ID_TO_UPDATE=$5
else
ENTRY_ID_TO_UPDATE=''
fi
#compile
javac -cp .:KalturaClient-3.3.1.jar:httpclient-4.2.3.jar:commons-httpclient-3.1.jar:log4j-1.2.15.jar:json-20090211.jar:./chunkedupload/ChunkedUpload.java UploadTest.java
#run
java -cp .:KalturaClient-3.3.1.jar:httpclient-4.2.3.jar:commons-httpclient-3.1.jar:log4j-1.2.15.jar:json-20090211.jar:commons-codec-1.6.jar:commons-logging-1.1.1.jar:./chunkedupload/ChunkedUpload.java UploadTest $SERVICE_URL $PARTNER_ID $ADMIN_SECRET $PATH_TO_FILE $ENTRY_ID_TO_UPDATE