| <?xml version="1.0"?> |
| <!-- |
| 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. |
| --> |
| |
| <project name="vxquery" default="build" basedir="."> |
| |
| <property name="xqts.url" value="http://dev.w3.org/2006/xquery-test-suite/PublicPagesStagingArea" /> |
| <property name="xqts.zip.file" value="XQTS_1_0_3.zip" /> |
| <property name="testsuites.dir" value="${basedir}/testsuites" /> |
| <property name="xqts.dir" value="${basedir}/testsuites/XQTS" /> |
| <property name="xqts.catalog.file" value="XQTSCatalog.xml" /> |
| |
| <target name="init"> |
| <available file="${testsuites.dir}/${xqts.zip.file}" property="xqts.zip.present"/> |
| <available file="${xqts.dir}/${xqts.catalog.file}" property="xqts.catalog.present"/> |
| </target> |
| |
| <target name="download" depends="init" unless="xqts.zip.present" > |
| <mkdir dir="${testsuites.dir}"/> |
| <get src="${xqts.url}/${xqts.zip.file}" |
| dest="${testsuites.dir}/${xqts.zip.file}" /> |
| </target> |
| |
| <target name="unzip" depends="init, download" unless="xqts.catalog.present" > |
| <mkdir dir="${xqts.dir}"/> |
| <unzip src="${testsuites.dir}/${xqts.zip.file}" dest="${xqts.dir}" /> |
| </target> |
| |
| <target name="build" depends="unzip" /> |
| |
| </project> |