memgraph/tests/drivers/java/run.sh
Marko Budiselic d14a4b69ab Max Query Size
Summary: Query Size Limit in Python, Java, JavaScript

Reviewers: mferencevic, mislav.bradac, teon.banek

Reviewed By: mferencevic, teon.banek

Subscribers: pullbot, buda

Differential Revision: https://phabricator.memgraph.io/D508
2017-07-13 14:09:27 +02:00

29 lines
558 B
Bash
Executable File

#!/bin/bash
set -e
JAVA=java
JAVAC=javac
if ! which $JAVA >/dev/null; then
echo "Please install java!"
exit 1
fi
if ! which $JAVAC >/dev/null; then
echo "Please install javac!"
exit 1
fi
DRIVER=neo4j-java-driver.jar
if [ ! -f $DRIVER ]; then
wget -O $DRIVER http://central.maven.org/maven2/org/neo4j/driver/neo4j-java-driver/1.3.1/neo4j-java-driver-1.3.1.jar || exit 1
fi
javac -classpath .:$DRIVER Basic.java
java -classpath .:$DRIVER Basic
javac -classpath .:$DRIVER MaxQueryLength.java
java -classpath .:$DRIVER MaxQueryLength