#!/bin/bash # Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0 ## Run Fuseki, include development code if it looks like it's available. ## Or --pages= export FUSEKI_HOME=${FUSEKI_HOME:-$HOME/Jena/jena-fuseki} if [ ! -e $FUSEKI_HOME ] then echo "$FUSEKI_HOME does not exist" 1>&2 exit 1 fi if [ ! -d $FUSEKI_HOME ] then echo "$FUSEKI_HOME exists but is not a directory" 1>&2 exit 1 fi CP="$(. $FUSEKI_HOME/run_cp)" if [ -e "$FUSEKI_HOME/classes" ] then CP="$FUSEKI_HOME/classes:$CP" elif [ -e "$FUSEKI_HOME/target/classes" ] then CP="$FUSEKI_HOME/target/classes:$CP" fi FUSEKI_LOG=${FUSEKI_LOG:-} # "-D-Dlog4j.configuration=file:$FUSEKI_HOME/log4j.properties" JVM_ARGS="${JVM_ARGS:--Xmx1200M}" #JVM_ARGS="$JVM_ARGS -XX:MaxDirectMemorySize=1G" exec java -cp "$CP" $JVM_ARGS $FUSEKI_LOG org.apache.jena.fuseki.FusekiCmd \ --home="$FUSEKI_HOME" "$@"