fixed the dirname
[lwes-journaller-java.git] / src / bin / lwes-journal-counter
blob3a4246703e7e6ee339ad4f14a65edaefe6054580
1 #!/bin/bash
3 # Make sure we can run this script from any directory.
4 bin=`dirname "$0"`/..
5 bin=`cd "$bin"; pwd`
7 for jar in ${bin}/lib/*.jar
8 do
9 if [ -z $CP ]; then
10 CP=${jar}
11 else
12 CP=${CP}:${jar}
14 done
15 CP=${CP}:${bin}/config
18 $JAVA_HOME/bin/java \
19 -Dlog4j.configuration=log4j.xml \
20 -classpath $CP \
21 org.lwes.journaller.CountDeJournaller $@