File: LogolMultiExec.sh

package info (click to toggle)
logol 1.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,108 kB
  • ctags: 1,146
  • sloc: java: 10,689; perl: 2,658; ansic: 362; xml: 359; ruby: 281; sh: 102; makefile: 39
file content (32 lines) | stat: -rwxr-xr-x 1,514 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash


# ARGS:
# Optional		 options.addOption("conf", true, "specify configuration file")
# Optional		 options.addOption("uid", true, "unique identifier for the query")
# Mandatory		 options.addOption("g", true, "grammar file to analyse")
# Mandatory		 options.addOption("db", true, "bank file to analyse")
# Optional		 options.addOption("max", true, "maximum returned solutions")
# Optional		 options.addOption("email", true, "email address")
#
#


# Installation directory
export REALDIR="$(readlink -f $0)"
export LOGOL_HOME="$(dirname "$REALDIR" )"

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/sge/lib/lx24-adm64

if [ -z "$LOGOL_LOG4J" ]; then
  LOGOL_LOG4J=$LOGOL_HOME/log4j.properties
fi

if [ -z "$JAVA_OPTS" ]; then
  JAVA_OPTS=" -Xms512m -Xmx4096m"
fi

echo "calling logol with parameters "$*

java -Xms512m -Xmx1024m -Dlogol.install=$LOGOL_HOME -Dlogol.conf=$LOGOL_HOME/prolog/logol.properties -Dlog4j.configuration=file://$LOGOL_LOG4J -classpath  $LOGOL_HOME/lib/xalan.jar:$LOGOL_HOME/lib/xercesImpl.jar:$LOGOL_HOME/lib/xml-apis.jar:$LOGOL_HOME/lib/mail.jar:$LOGOL_HOME/lib/activation.jar:$LOGOL_HOME/lib/biojava.jar:$LOGOL_HOME/lib/bytecode:$LOGOL_HOME/lib/drmaa.jar:$LOGOL_HOME/lib/commons-configuration.jar:$LOGOL_HOME/lib/LogolExec.jar:$LOGOL_HOME/lib/commons-cli.jar:$LOGOL_HOME/lib/commons-collections.jar:$LOGOL_HOME/lib/commons-lang.jar:$LOGOL_HOME/lib/commons-logging.jar:$LOGOL_HOME/lib/log4j-1.2.jar:$LOGOL_HOME/lib/antlr.jar  org.irisa.genouest.logol.dispatcher.Dispatch  $*