Add script to call ToCSV

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1773630 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2016-12-11 20:57:49 +00:00
parent 9bfbca8f15
commit 9ab825342a
1 changed files with 20 additions and 0 deletions

20
tocsv.sh Executable file
View File

@ -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 "$@"