1a622bb93SDamjan Jovanovic<?xml version="1.0" encoding="UTF-8"?> 2a622bb93SDamjan Jovanovic<!--*********************************************************** 3a622bb93SDamjan Jovanovic * 4a622bb93SDamjan Jovanovic * Licensed to the Apache Software Foundation (ASF) under one 5a622bb93SDamjan Jovanovic * or more contributor license agreements. See the NOTICE file 6a622bb93SDamjan Jovanovic * distributed with this work for additional information 7a622bb93SDamjan Jovanovic * regarding copyright ownership. The ASF licenses this file 8a622bb93SDamjan Jovanovic * to you under the Apache License, Version 2.0 (the 9a622bb93SDamjan Jovanovic * "License"); you may not use this file except in compliance 10a622bb93SDamjan Jovanovic * with the License. You may obtain a copy of the License at 11a622bb93SDamjan Jovanovic * 12a622bb93SDamjan Jovanovic * http://www.apache.org/licenses/LICENSE-2.0 13a622bb93SDamjan Jovanovic * 14a622bb93SDamjan Jovanovic * Unless required by applicable law or agreed to in writing, 15a622bb93SDamjan Jovanovic * software distributed under the License is distributed on an 16a622bb93SDamjan Jovanovic * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17a622bb93SDamjan Jovanovic * KIND, either express or implied. See the License for the 18a622bb93SDamjan Jovanovic * specific language governing permissions and limitations 19a622bb93SDamjan Jovanovic * under the License. 20a622bb93SDamjan Jovanovic * 21a622bb93SDamjan Jovanovic ***********************************************************--> 22a622bb93SDamjan Jovanovic 23a622bb93SDamjan Jovanovic 24a622bb93SDamjan Jovanovic<project name="smoketest" default="smoketest"> 25a622bb93SDamjan Jovanovic <dirname property="project.dir" file="${ant.file.smoketest}"/> 26a622bb93SDamjan Jovanovic <property file="${project.dir}/../../main/ant.properties"/> 27a622bb93SDamjan Jovanovic 28a622bb93SDamjan Jovanovic <property name="data.dir" value="${project.dir}/data"/> 29a622bb93SDamjan Jovanovic <property name="build.base.dir" value="${project.dir}/target"/> 30a622bb93SDamjan Jovanovic <property name="jar.dir" value="${build.base.dir}/TestExtension"/> 31a622bb93SDamjan Jovanovic <import file="${SRC_ROOT}/solenv/ant/aoo-ant.xml"/> 32a622bb93SDamjan Jovanovic 33a622bb93SDamjan Jovanovic <target name="init-project"> 34a622bb93SDamjan Jovanovic <property name="jar.name" value="TestExtension"/> 35a622bb93SDamjan Jovanovic <property name="jar.manifest" value="${project.dir}/MANIFEST.MF"/> 36a622bb93SDamjan Jovanovic <mkdir dir="${build.base.dir}/TestExtension"/> 37a622bb93SDamjan Jovanovic 38a622bb93SDamjan Jovanovic <path id="main.classpath"> 39a622bb93SDamjan Jovanovic <pathelement location="${OUTDIR}/bin/juh.jar"/> 40a622bb93SDamjan Jovanovic <pathelement location="${OUTDIR}/bin/jurt.jar"/> 41a622bb93SDamjan Jovanovic <pathelement location="${OUTDIR}/bin/ridl.jar"/> 42a622bb93SDamjan Jovanovic <pathelement location="${OUTDIR}/bin/unoil.jar"/> 43a622bb93SDamjan Jovanovic </path> 44a622bb93SDamjan Jovanovic </target> 45a622bb93SDamjan Jovanovic 46a622bb93SDamjan Jovanovic <target name="pre-clean"> 47a622bb93SDamjan Jovanovic <delete dir="${project.dir}/target"/> 48a622bb93SDamjan Jovanovic </target> 49a622bb93SDamjan Jovanovic 50a622bb93SDamjan Jovanovic <target name="smoketestdoc"> 51a622bb93SDamjan Jovanovic <mkdir dir="${project.dir}/target/smoketestdoc"/> 52a622bb93SDamjan Jovanovic <copy todir="${project.dir}/target/smoketestdoc"> 53a622bb93SDamjan Jovanovic <resources> 54a622bb93SDamjan Jovanovic <file name="${data.dir}/content.xml"/> 55a622bb93SDamjan Jovanovic <file name="${data.dir}/meta.xml"/> 56a622bb93SDamjan Jovanovic <file name="${data.dir}/settings.xml"/> 57a622bb93SDamjan Jovanovic <file name="${data.dir}/styles.xml"/> 58a622bb93SDamjan Jovanovic </resources> 59a622bb93SDamjan Jovanovic </copy> 60a622bb93SDamjan Jovanovic <echo message="application/vnd.sun.xml.writer" file="${project.dir}/target/smoketestdoc/mimetype"/> 61a622bb93SDamjan Jovanovic <mkdir dir="${project.dir}/target/smoketestdoc/META-INF"/> 62a622bb93SDamjan Jovanovic <copy file="${data.dir}/manifest.xml" todir="${project.dir}/target/smoketestdoc/META-INF"/> 63a622bb93SDamjan Jovanovic <mkdir dir="${project.dir}/target/smoketestdoc/Basic"/> 64a622bb93SDamjan Jovanovic <copy file="${data.dir}/script-lc.xml" todir="${project.dir}/target/smoketestdoc/Basic"/> 65a622bb93SDamjan Jovanovic <mkdir dir="${project.dir}/target/smoketestdoc/Basic/Standard"/> 66a622bb93SDamjan Jovanovic <copy todir="${project.dir}/target/smoketestdoc/Basic/Standard"> 67a622bb93SDamjan Jovanovic <resources> 68a622bb93SDamjan Jovanovic <file name="${data.dir}/script-lb.xml"/> 69a622bb93SDamjan Jovanovic <file name="${data.dir}/Events.xml"/> 70a622bb93SDamjan Jovanovic <file name="${data.dir}/Global.xml"/> 71a622bb93SDamjan Jovanovic <file name="${data.dir}/Test_10er.xml"/> 72a622bb93SDamjan Jovanovic <file name="${data.dir}/Test_DB.xml"/> 73a622bb93SDamjan Jovanovic <file name="${data.dir}/Test_Ext.xml"/> 74a622bb93SDamjan Jovanovic </resources> 75a622bb93SDamjan Jovanovic </copy> 76a622bb93SDamjan Jovanovic <mkdir dir="${project.dir}/target/smoketestdoc/Dialogs"/> 77a622bb93SDamjan Jovanovic <copy file="${data.dir}/dialog-lc.xml" todir="${project.dir}/target/smoketestdoc/Dialogs"/> 78a622bb93SDamjan Jovanovic <mkdir dir="${project.dir}/target/smoketestdoc/Dialogs/Standard"/> 79a622bb93SDamjan Jovanovic <copy todir="${project.dir}/target/smoketestdoc/Dialogs/Standard"> 80a622bb93SDamjan Jovanovic <resources> 81a622bb93SDamjan Jovanovic <file name="${data.dir}/dialog-lb.xml"/> 82a622bb93SDamjan Jovanovic <file name="${data.dir}/OptionsDlg.xml"/> 83a622bb93SDamjan Jovanovic </resources> 84a622bb93SDamjan Jovanovic </copy> 85a622bb93SDamjan Jovanovic <zip destfile="${project.dir}/target/smoketestdoc.odt" basedir="${project.dir}/target/smoketestdoc" filesonly="true"/> 86a622bb93SDamjan Jovanovic </target> 87a622bb93SDamjan Jovanovic 88a622bb93SDamjan Jovanovic <target name="TestExtension" depends="main,smoketestdoc"> 89*4aa87146SDamjan Jovanovic <copy tofile="${build.base.dir}/TestExtension/TestExtension.rdb" file="${idl.build.dir}/registry.rdb"/> 90a622bb93SDamjan Jovanovic <mkdir dir="${build.base.dir}/TestExtension/META-INF"/> 91a622bb93SDamjan Jovanovic <copy todir="${build.base.dir}/TestExtension/META-INF" file="${project.dir}/manifest.xml"/> 92a622bb93SDamjan Jovanovic <zip destfile="${build.base.dir}/TestExtension.oxt" basedir="${build.base.dir}/TestExtension"/> 93a622bb93SDamjan Jovanovic </target> 94a622bb93SDamjan Jovanovic 95a622bb93SDamjan Jovanovic <target name="smoketest" depends="smoketestdoc,TestExtension"/> 96a622bb93SDamjan Jovanovic</project> 97