root/src/java/run-iep.sh.in

Revision 24c830d2b69af440350f3aadefcd0a23491e2dab, 1.0 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 3 years ago)

support B{1,2} in the IEP system

  • Property mode set to 100755
Line 
1 #!/bin/sh
2
3 JAVA=@JAVA@
4 if [ ! -x $JAVA ]; then
5         JAVA=/usr/bin/java
6 fi
7 JPARAMS="-Xms32m -Xmx512m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC"
8 if [ "$1" = "-d" ]; then
9         JAVA=`echo $JAVA | sed -e 's/java$/jdb/;'`
10         JPARAMS="-sourcepath . $JPARAMS"
11         shift
12 fi
13 JARS="reconnoiter.jar activemq-all-5.2.0.jar antlr-runtime-3.1.1.jar \
14         esper-4.1.0.jar log4j-1.2.15.jar \
15         spring-beans-2.5.5.jar spring-context-2.5.5.jar \
16         cglib-nodep-2.2.jar commons-pool-1.4.jar commons-dbcp-1.2.2.jar \
17         postgresql-8.3-604.jdbc3.jar rabbitmq-client-2.4.1.jar \
18         commons-io-1.2.jar commons-cli-1.1.jar commons-logging-1.1.1.jar \
19         commons-codec-1.5.jar protobuf-java-2.4.1.jar"
20
21 DIRS=". lib @prefix@/java/lib @prefix@/java"
22 CP=
23
24 for jar in $JARS
25 do
26         found=
27         for dir in $DIRS
28         do
29                 if [ -r "$dir/$jar" ]; then
30                         found="$dir/$jar"
31                         CP="$CP:$found"
32                         break
33                 fi
34         done
35         if [ -z "$found" ]; then
36                 echo "Cannot find $jar" 2>&1
37                 exit
38         fi
39 done
40 exec $JAVA $JPARAMS -classpath $CP com.omniti.reconnoiter.IEPEngine $*
Note: See TracBrowser for help on using the browser.