From d9c85eba887e063f1174d605fa1a1344d2a3dee0 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Sun, 11 Dec 2016 20:57:49 +0000 Subject: [PATCH] Add script to call ToCSV git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1773630 13f79535-47bb-0310-9956-ffa450edef68 --- tocsv.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 tocsv.sh diff --git a/tocsv.sh b/tocsv.sh new file mode 100755 index 0000000000..2abf30b2cd --- /dev/null +++ b/tocsv.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# find jar-file with highest version number +for i in `ls build/dist/poi-*.jar | grep -v -- "-sources" | grep -v -- "-excelant" | grep -v -- "-scratchpad" | grep -v -- "-javadoc"`;do + CP=$i:$CP +done + +for i in `ls ooxml-lib/*.jar | grep -v -- "xmlbeans-2.3.0.jar"`;do + CP=$i:$CP +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.ss.examples.ToCSV "$@" -- 2.39.5