diff options
author | Dominik Stadler <centic@apache.org> | 2016-12-11 20:56:28 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2016-12-11 20:56:28 +0000 |
commit | fa426fbe794b0a8f02499654d006275da8384535 (patch) | |
tree | 4be75c2c81d0ec341448e1c97384b82dc78957e0 /run.sh | |
parent | d13aec5b25260ff276216a0549f5b328ee613b32 (diff) | |
download | poi-fa426fbe794b0a8f02499654d006275da8384535.tar.gz poi-fa426fbe794b0a8f02499654d006275da8384535.zip |
Add script to run ant locally with Java 1.6/Ant 1.8.x
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1773610 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'run.sh')
-rwxr-xr-x | run.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/run.sh b/run.sh new file mode 100755 index 0000000000..c153181d47 --- /dev/null +++ b/run.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +export JAVA_HOME=/usr/lib/jvm/java-6-sun + +# use this JVM for creating javadocs: +#export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 + +export PATH=$JAVA_HOME/bin:$PATH + +export FORREST_HOME=/opt/apache/forrest/apache-forrest-0.5.1-bin + +export ANT_OPTS="-Xmx1024m -XX:MaxPermSize=256m" + +#ls $JAVA_HOME +java -version + +# compile-ooxml-lite test-all testcoveragereport +#/opt/apache/apache-ant/apache-ant-1.7.1/bin/ +ant \ + -Dcoverage.enabled=true \ + -Dorg.apache.poi.util.POILogger=org.apache.poi.util.NullLogger \ + -Dhalt.on.test.failure=false \ + $* +/opt/apache/apache-ant/apache-ant-1.7.1/bin/ant -Dcoverage.enabled=true $* |