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