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

Revision 4bb60790e557f767d9b7b9b948af0b62b5b1f359, 0.9 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

revert this stuff as it breaks anyone with autoconf pre 2.60... find a way to do this while maintaining backward compatability: revert f6f81cbbb2dcc8ba48b2ac27f768a5c9f4b63080

  • 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
20 DIRS=". lib @prefix@/java/lib @prefix@/java"
21 CP=
22
23 for jar in $JARS
24 do
25         found=
26         for dir in $DIRS
27         do
28                 if [ -r "$dir/$jar" ]; then
29                         found="$dir/$jar"
30                         CP="$CP:$found"
31                         break
32                 fi
33         done
34         if [ -z "$found" ]; then
35                 echo "Cannot find $jar" 2>&1
36                 exit
37         fi
38 done
39 exec $JAVA $JPARAMS -classpath $CP com.omniti.reconnoiter.IEPEngine $*
Note: See TracBrowser for help on using the browser.