From: Dominik Stadler Date: Sun, 11 Dec 2016 20:57:12 +0000 (+0000) Subject: Check if we did find jars in view.sh X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a42c0fcaec11b84250ec4865002bdb05b38b0c90;p=poi.git Check if we did find jars in view.sh git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1773621 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/view.sh b/view.sh index 519956cdc6..96b924c3db 100755 --- a/view.sh +++ b/view.sh @@ -4,6 +4,13 @@ for i in `ls build/dist/poi-*.jar | grep -v -- "-sources" | grep -v -- "-examples" | grep -v -- "-excelant" | grep -v -- "-ooxml" | grep -v -- "-scratchpad"`;do CP=$i done + +if [ "$CP" = "" ] +then + echo Did not find jar files in directory build/dist, please run target "jar" + exit 1 +fi + echo Using jar $CP java -cp $CP org.apache.poi.hssf.dev.BiffViewer --escher "$@"