Fix inconsistent spacing / whitespace

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1745361 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2016-05-24 13:39:46 +00:00
parent dccad7fb92
commit 6c976b6700
1 changed files with 78 additions and 90 deletions

View File

@ -21,19 +21,17 @@ under the License.
<description>Test-Ant file which verifies that the Apache POI distribution build sources can be compiled successfully.
Before running this, you should execute the "assemble" target in the main build.xml to have the packaged files
created correctly.
Before running this, you should execute the "assemble" target in the main build.xml to have the packaged files created correctly.
</description>
<property name="dist" value="../../build/dist"/>
<property name="build" value="../../build/distsourcebuild"/>
<target name="init" depends="">
</target>
<target name="run" depends="init,runSourceBuild,runCompileTest"/>
<target name="runSourceBuild" depends="init">
<!-- clean out old stuff in build-dir -->
<delete dir="${build}"/>
@ -46,7 +44,7 @@ under the License.
<date xmlns="antlib:org.apache.tools.ant.types.resources.comparators"/>
<resources>
<fileset dir="${dist}">
<include name="poi-src-*.zip" />
<include name="poi-src-*.zip"/>
</fileset>
</resources>
</sort>
@ -59,24 +57,24 @@ under the License.
<!-- look for name of sub-dir, do this dynamically as it changes with every (beta|rc)-release -->
<pathconvert property="dirversion">
<dirset dir="${build}">
<include name="*" />
<include name="*"/>
</dirset>
</pathconvert>
<!-- copy over required libs to avoid re-downloading them always -->
<mkdir dir="${dirversion}/lib"/>
<mkdir dir="${dirversion}/ooxml-lib"/>
<mkdir dir="${dirversion}/compile-lib"/>
<copy todir="${dirversion}/lib">
<fileset dir="../../lib"/>
</copy>
<copy todir="${dirversion}/ooxml-lib">
<fileset dir="../../ooxml-lib"/>
</copy>
<copy todir="${dirversion}/compile-lib">
<fileset dir="../../compile-lib"/>
</copy>
<!-- copy over required libs to avoid re-downloading them always -->
<mkdir dir="${dirversion}/lib"/>
<mkdir dir="${dirversion}/ooxml-lib"/>
<mkdir dir="${dirversion}/compile-lib"/>
<copy todir="${dirversion}/lib">
<fileset dir="../../lib"/>
</copy>
<copy todir="${dirversion}/ooxml-lib">
<fileset dir="../../ooxml-lib"/>
</copy>
<copy todir="${dirversion}/compile-lib">
<fileset dir="../../compile-lib"/>
</copy>
<!-- finally call Ant on the extracted source to check if we can build the packages -->
<echo message="Building in temporary dir ${dirversion}/"/>
<ant dir="${dirversion}" target="jar" inheritAll="false" inheritRefs="false" useNativeBasedir="true"/>
@ -86,84 +84,74 @@ under the License.
<!-- clean out old stuff in build-dir -->
<delete dir="${build}"/>
<mkdir dir="${build}"/>
<!-- select latest built jar files without scratchpad.jar -->
<pathconvert property="jarpackage">
<sort>
<resources>
<fileset dir="${dist}">
<include name="**/poi-3.*.jar" />
<include name="**/poi-ooxml-3.*.jar" />
<include name="**/poi-ooxml-schemas-3.*.jar" />
<exclude name="**/*-javadoc*" />
<exclude name="**/*-sources*" />
</fileset>
</resources>
</sort>
<sort>
<resources>
<fileset dir="${dist}">
<include name="**/poi-3.*.jar"/>
<include name="**/poi-ooxml-3.*.jar"/>
<include name="**/poi-ooxml-schemas-3.*.jar"/>
<exclude name="**/*-javadoc*"/>
<exclude name="**/*-sources*"/>
</fileset>
</resources>
</sort>
</pathconvert>
<fail message="Did not find jar packages looking in directory ${dist}">
<condition>
<or>
<equals arg1="${jarpackage}" arg2=""/>
<not>
<isset property="jarpackage"/>
</not>
</or>
</condition>
</fail>
<echo message="Found jar packages at ${jarpackage}, dist: ${dist}"/>
<fail message="Did not find jar packages looking in directory ${dist}">
<condition>
<or>
<equals arg1="${jarpackage}" arg2=""/>
<not>
<isset property="jarpackage"/>
</not>
</or>
</condition>
</fail>
<path id="libs">
<fileset dir="../../lib">
<include name="junit*.jar" />
</fileset>
<fileset dir="../../ooxml-lib">
<include name="ooxml-schemas-*.jar" />
<include name="xmlbeans-*.jar" />
<exclude name="xmlbeans-2.3.*.jar" />
</fileset>
</path>
<echo message="Found jar packages at ${jarpackage}, dist: ${dist}"/>
<path id="libs">
<fileset dir="../../lib">
<include name="junit*.jar"/>
</fileset>
<fileset dir="../../ooxml-lib">
<include name="ooxml-schemas-*.jar"/>
<include name="xmlbeans-*.jar"/>
<exclude name="xmlbeans-2.3.*.jar"/>
</fileset>
</path>
<echo message="Compiling examples without linking to scratchpad.jar to ensure that only some specific ones require this jar" />
<javac srcdir="../examples/src" destdir="${build}"
target="1.6"
source="1.6"
debug="true"
encoding="ASCII"
fork="yes"
includeantruntime="false"
excludes="org/apache/poi/hslf/**,org/apache/poi/hsmf/**,**/EmbeddedObjects.java,**/EmeddedObjects.java,**/LoadEmbedded.java,**/Word2Forrest.java"
classpath="${jarpackage}"
classpathref="libs">
<echo message="Compiling examples without linking to scratchpad.jar to ensure that only some specific ones require this jar"/>
<javac srcdir="../examples/src" destdir="${build}"
target="1.6" source="1.6" debug="true"
encoding="ASCII" fork="yes" includeantruntime="false"
excludes="org/apache/poi/hslf/**,org/apache/poi/hsmf/**,**/EmbeddedObjects.java,**/EmeddedObjects.java,**/LoadEmbedded.java,**/Word2Forrest.java"
classpath="${jarpackage}" classpathref="libs">
</javac>
<!-- select latest built jar files with additionally scratchpad.jar -->
<pathconvert property="jarpackagescratchpad">
<sort>
<resources>
<fileset dir="${dist}">
<include name="**/poi-3.*.jar" />
<include name="**/poi-ooxml-3.*.jar" />
<include name="**/poi-ooxml-schemas-3.*.jar" />
<include name="**/poi-scratchpad-3.*.jar" />
<exclude name="**/*-javadoc*" />
<exclude name="**/*-sources*" />
</fileset>
</resources>
</sort>
<sort>
<resources>
<fileset dir="${dist}">
<include name="**/poi-3.*.jar"/>
<include name="**/poi-ooxml-3.*.jar"/>
<include name="**/poi-ooxml-schemas-3.*.jar"/>
<include name="**/poi-scratchpad-3.*.jar"/>
<exclude name="**/*-javadoc*"/>
<exclude name="**/*-sources*"/>
</fileset>
</resources>
</sort>
</pathconvert>
<echo message="Compiling all examples with the additional scratchpad.jar" />
<javac srcdir="../examples/src" destdir="${build}"
target="1.6"
source="1.6"
debug="true"
encoding="ASCII"
fork="yes"
includeantruntime="false"
classpath="${jarpackagescratchpad}"
classpathref="libs">
<echo message="Compiling all examples with the additional scratchpad.jar"/>
<javac srcdir="../examples/src" destdir="${build}"
target="1.6" source="1.6" debug="true"
encoding="ASCII" fork="yes" includeantruntime="false"
classpath="${jarpackagescratchpad}" classpathref="libs">
</javac>
</target>
</project>