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

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

allow a first -d flag enable the debugger for run-iep.sh

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