All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ontop.ontop-cli.4.2.2.source-code.ontop Maven / Gradle / Ivy

There is a newer version: 5.2.1.1
Show newest version
#!/bin/bash

if [ -n "${JAVA_HOME}" -a -x "${JAVA_HOME}/bin/java" ]; then
	JAVA="${JAVA_HOME}/bin/java"
else
	JAVA=java
fi

# 

SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
  DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
  SOURCE="$(readlink "$SOURCE")"
  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done

ONTOP_HOME="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

if [ -z "${ONTOP_JAVA_ARGS}" ]; then
  ONTOP_JAVA_ARGS="-Xmx512m"
fi

if [ -z "${ONTOP_FILE_ENCODING}" ]; then
  ONTOP_FILE_ENCODING="UTF-8"
fi

exec ${JAVA} ${ONTOP_JAVA_ARGS} -cp "${ONTOP_HOME}/lib/*:${ONTOP_HOME}/jdbc/*" -Dfile.encoding=${ONTOP_FILE_ENCODING} -Dlogback.configurationFile="${ONTOP_HOME}/log/logback.xml" -Dlogging.config="${ONTOP_HOME}/log/logback.xml" \
 it.unibz.inf.ontop.cli.Ontop $@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy