2016-12-11 16:15:06 -05:00
|
|
|
#!/bin/sh
|
2016-12-11 15:56:22 -05:00
|
|
|
|
|
|
|
# find jar-file with highest version number
|
2016-12-11 16:15:06 -05:00
|
|
|
for i in `ls build/dist/poi-*.jar | grep -v -- "-sources" | grep -v -- "-examples" | grep -v -- "-excelant" | grep -v -- "-ooxml" | grep -v -- "-scratchpad" | grep -v -- "-javadoc"`;do
|
2016-12-11 15:57:24 -05:00
|
|
|
CP=$i:$CP
|
2016-12-11 15:56:22 -05:00
|
|
|
done
|
2016-12-11 15:57:12 -05:00
|
|
|
|
|
|
|
if [ "$CP" = "" ]
|
|
|
|
then
|
|
|
|
echo Did not find jar files in directory build/dist, please run target "jar"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2016-12-11 15:56:22 -05:00
|
|
|
echo Using jar $CP
|
|
|
|
|
2016-12-11 16:15:06 -05:00
|
|
|
java -cp $CP org.apache.poi.hssf.dev.BiffViewer --escher "$@"
|