2022-01-04 02:27:14 +01:00
|
|
|
#!/bin/bash
|
2020-09-13 01:28:27 +02:00
|
|
|
|
2022-01-04 02:27:14 +01:00
|
|
|
# Optional environment settings:
|
|
|
|
# export LOG4J_CONFIGURATION_FILE="toto.properties"
|
|
|
|
# export LOG4J_LEVEL=ERROR
|
|
|
|
# https://logging.apache.org/log4j/log4j-2.11.2/manual/configuration.html#System_Properties
|
|
|
|
|
|
|
|
# Java check.
|
2020-09-13 01:28:27 +02:00
|
|
|
javaCheck=`which java`
|
|
|
|
if [[ "$javaCheck" =~ ^/.* ]]; then
|
2022-01-04 02:27:14 +01:00
|
|
|
#echo "Java requirement............... OK"
|
|
|
|
|
|
|
|
# Optional system properties:
|
|
|
|
# LOGFILE="-Dlog4j2.configurationFile=../../log4j2.properties"
|
|
|
|
# LOGLEVEL="-Dlog4j2.level=ERROR"
|
|
|
|
# https://logging.apache.org/log4j/log4j-2.11.2/manual/configuration.html#System_Properties
|
|
|
|
|
|
|
|
java -Djava.awt.headless=true $LOGFILE $LOGLEVEL -jar "$(dirname "$0")"/statoolinfos.jar $@
|
2020-09-13 01:28:27 +02:00
|
|
|
else
|
2022-01-04 02:27:14 +01:00
|
|
|
echo "Java requirement............... MISSING"
|
2020-09-13 01:28:27 +02:00
|
|
|
fi
|