]> source.dussan.org Git - poi.git/commitdiff
Check if we did find jars in view.sh
authorDominik Stadler <centic@apache.org>
Sun, 11 Dec 2016 20:57:12 +0000 (20:57 +0000)
committerDominik Stadler <centic@apache.org>
Sun, 11 Dec 2016 20:57:12 +0000 (20:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1773621 13f79535-47bb-0310-9956-ffa450edef68

view.sh

diff --git a/view.sh b/view.sh
index 519956cdc61f8fc22e042d7eb65f40e0625fcdce..96b924c3dbdca7821bdb4375ec2739611d7c65e2 100755 (executable)
--- 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 "$@"