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

Revision 275020089c5881bce207b67b6e3ce7e4685ccb51, 1.1 kB (checked in by Brian Clapper <bclapper@omniti.com>, 2 years ago)

upgrade to esper 4.5, fix internal 'API' changes to do so

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