2016-12-11 15:56:22 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# find jar-file with highest version number
|
2016-12-11 15:57:24 -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
|
|
|
|
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
|
|
|
|
|
|
|
|
java -cp $CP org.apache.poi.hssf.dev.BiffViewer --escher "$@"
|