xref: /trunk/test/smoketestdoc/build.xml (revision 6ad462b0)
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
24*6ad462b0Scbmarcum<project name="smoketest" default="smoketest" xmlns:if="ant:if" xmlns:unless="ant:unless">
25a622bb93SDamjan Jovanovic    <dirname property="project.dir" file="${ant.file.smoketest}"/>
26a622bb93SDamjan Jovanovic
27*6ad462b0Scbmarcum    <property name="SRC_ROOT" value="${project.dir}/../../main" />
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"/>
31*6ad462b0Scbmarcum
32*6ad462b0Scbmarcum    <import file="${project.dir}/aoo-ant.xml"/>
33a622bb93SDamjan Jovanovic
34a622bb93SDamjan Jovanovic    <target name="init-project">
35a622bb93SDamjan Jovanovic        <property name="jar.name" value="TestExtension"/>
36a622bb93SDamjan Jovanovic        <property name="jar.manifest" value="${project.dir}/MANIFEST.MF"/>
37a622bb93SDamjan Jovanovic        <mkdir dir="${build.base.dir}/TestExtension"/>
38a622bb93SDamjan Jovanovic
39a622bb93SDamjan Jovanovic        <path id="main.classpath">
40*6ad462b0Scbmarcum            <pathelement location="${openoffice.home}/program/classes/juh.jar"/>
41*6ad462b0Scbmarcum            <pathelement location="${openoffice.home}/program/classes/jurt.jar"/>
42*6ad462b0Scbmarcum            <pathelement location="${openoffice.home}/program/classes/ridl.jar"/>
43*6ad462b0Scbmarcum            <pathelement location="${openoffice.home}/program/classes/unoil.jar"/>
44a622bb93SDamjan Jovanovic        </path>
45a622bb93SDamjan Jovanovic    </target>
46a622bb93SDamjan Jovanovic
47a622bb93SDamjan Jovanovic    <target name="pre-clean">
48a622bb93SDamjan Jovanovic        <delete dir="${project.dir}/target"/>
49a622bb93SDamjan Jovanovic    </target>
50a622bb93SDamjan Jovanovic
51a622bb93SDamjan Jovanovic    <target name="smoketestdoc">
52a622bb93SDamjan Jovanovic        <mkdir dir="${project.dir}/target/smoketestdoc"/>
53a622bb93SDamjan Jovanovic        <copy todir="${project.dir}/target/smoketestdoc">
54a622bb93SDamjan Jovanovic            <resources>
55a622bb93SDamjan Jovanovic                <file name="${data.dir}/content.xml"/>
56a622bb93SDamjan Jovanovic                <file name="${data.dir}/meta.xml"/>
57a622bb93SDamjan Jovanovic                <file name="${data.dir}/settings.xml"/>
58a622bb93SDamjan Jovanovic                <file name="${data.dir}/styles.xml"/>
59a622bb93SDamjan Jovanovic            </resources>
60a622bb93SDamjan Jovanovic        </copy>
61a622bb93SDamjan Jovanovic        <echo message="application/vnd.sun.xml.writer" file="${project.dir}/target/smoketestdoc/mimetype"/>
62a622bb93SDamjan Jovanovic        <mkdir dir="${project.dir}/target/smoketestdoc/META-INF"/>
63a622bb93SDamjan Jovanovic        <copy file="${data.dir}/manifest.xml" todir="${project.dir}/target/smoketestdoc/META-INF"/>
64a622bb93SDamjan Jovanovic        <mkdir dir="${project.dir}/target/smoketestdoc/Basic"/>
65a622bb93SDamjan Jovanovic        <copy file="${data.dir}/script-lc.xml" todir="${project.dir}/target/smoketestdoc/Basic"/>
66a622bb93SDamjan Jovanovic        <mkdir dir="${project.dir}/target/smoketestdoc/Basic/Standard"/>
67a622bb93SDamjan Jovanovic        <copy todir="${project.dir}/target/smoketestdoc/Basic/Standard">
68a622bb93SDamjan Jovanovic            <resources>
69a622bb93SDamjan Jovanovic                <file name="${data.dir}/script-lb.xml"/>
70a622bb93SDamjan Jovanovic                <file name="${data.dir}/Events.xml"/>
71a622bb93SDamjan Jovanovic                <file name="${data.dir}/Global.xml"/>
72a622bb93SDamjan Jovanovic                <file name="${data.dir}/Test_10er.xml"/>
73a622bb93SDamjan Jovanovic                <file name="${data.dir}/Test_DB.xml"/>
74a622bb93SDamjan Jovanovic                <file name="${data.dir}/Test_Ext.xml"/>
75a622bb93SDamjan Jovanovic            </resources>
76a622bb93SDamjan Jovanovic        </copy>
77a622bb93SDamjan Jovanovic        <mkdir dir="${project.dir}/target/smoketestdoc/Dialogs"/>
78a622bb93SDamjan Jovanovic        <copy file="${data.dir}/dialog-lc.xml" todir="${project.dir}/target/smoketestdoc/Dialogs"/>
79a622bb93SDamjan Jovanovic        <mkdir dir="${project.dir}/target/smoketestdoc/Dialogs/Standard"/>
80a622bb93SDamjan Jovanovic        <copy todir="${project.dir}/target/smoketestdoc/Dialogs/Standard">
81a622bb93SDamjan Jovanovic            <resources>
82a622bb93SDamjan Jovanovic                <file name="${data.dir}/dialog-lb.xml"/>
83a622bb93SDamjan Jovanovic                <file name="${data.dir}/OptionsDlg.xml"/>
84a622bb93SDamjan Jovanovic            </resources>
85a622bb93SDamjan Jovanovic        </copy>
86a622bb93SDamjan Jovanovic        <zip destfile="${project.dir}/target/smoketestdoc.odt" basedir="${project.dir}/target/smoketestdoc" filesonly="true"/>
87a622bb93SDamjan Jovanovic    </target>
88a622bb93SDamjan Jovanovic
89a622bb93SDamjan Jovanovic    <target name="TestExtension" depends="main,smoketestdoc">
904aa87146SDamjan Jovanovic        <copy tofile="${build.base.dir}/TestExtension/TestExtension.rdb" file="${idl.build.dir}/registry.rdb"/>
91a622bb93SDamjan Jovanovic        <mkdir dir="${build.base.dir}/TestExtension/META-INF"/>
92a622bb93SDamjan Jovanovic        <copy todir="${build.base.dir}/TestExtension/META-INF" file="${project.dir}/manifest.xml"/>
93a622bb93SDamjan Jovanovic        <zip destfile="${build.base.dir}/TestExtension.oxt" basedir="${build.base.dir}/TestExtension"/>
94a622bb93SDamjan Jovanovic    </target>
95a622bb93SDamjan Jovanovic
96a622bb93SDamjan Jovanovic    <target name="smoketest" depends="smoketestdoc,TestExtension"/>
97*6ad462b0Scbmarcum
98a622bb93SDamjan Jovanovic</project>
99a622bb93SDamjan Jovanovic
100