2015-05-31 20:11:28 +00:00
|
|
|
<?xml version="1.0"?>
|
2015-05-31 21:02:39 +00:00
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
or more contributor license agreements. See the NOTICE file
|
|
|
|
distributed with this work for additional information
|
|
|
|
regarding copyright ownership. The ASF licenses this file
|
|
|
|
to you under the Apache License, Version 2.0 (the
|
|
|
|
"License"); you may not use this file except in compliance
|
|
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
|
|
software distributed under the License is distributed on an
|
|
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
KIND, either express or implied. See the License for the
|
|
|
|
specific language governing permissions and limitations
|
|
|
|
under the License.
|
|
|
|
-->
|
2015-05-31 20:11:28 +00:00
|
|
|
<project name="POI Testbuild" default="run" basedir=".">
|
|
|
|
|
|
|
|
<description>Test-Ant file which verifies that the Apache POI distribution build sources can be compiled successfully.</description>
|
|
|
|
|
|
|
|
<property name="dist" value="../../build/dist"/>
|
|
|
|
<property name="build" value="../../build/distsourcebuild"/>
|
|
|
|
|
|
|
|
<target name="init" depends="">
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="run" depends="init">
|
|
|
|
<!-- clean out old stuff in build-dir -->
|
|
|
|
<delete dir="${build}"/>
|
|
|
|
<mkdir dir="${build}"/>
|
|
|
|
|
|
|
|
<!-- select latest biult source zip -->
|
|
|
|
<pathconvert property="srcpackage">
|
|
|
|
<last>
|
|
|
|
<sort>
|
|
|
|
<date xmlns="antlib:org.apache.tools.ant.types.resources.comparators"/>
|
|
|
|
<resources>
|
|
|
|
<fileset dir="${dist}">
|
|
|
|
<include name="poi-src-*.zip" />
|
|
|
|
</fileset>
|
|
|
|
</resources>
|
|
|
|
</sort>
|
|
|
|
</last>
|
|
|
|
</pathconvert>
|
|
|
|
|
|
|
|
<echo message="Found source package at ${srcpackage}"/>
|
|
|
|
<unzip src="${srcpackage}" dest="${build}" failOnEmptyArchive="true"/>
|
|
|
|
|
|
|
|
<!-- 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="*" />
|
|
|
|
</dirset>
|
|
|
|
</pathconvert>
|
|
|
|
|
|
|
|
<!-- 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"/>
|
|
|
|
</target>
|
|
|
|
</project>
|