xref: /aoo4110/main/xmerge/source/xmerge/build.xml (revision b1cdbd2c)
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
25<project name="xmerge" default="all" basedir=".">
26
27    <property file="../inc/antbuild.properties"/>
28
29    <property environment="env"/>
30    <property name="env.XML_APIS_JAR" value="${solar.jar}/xml-apis.jar"/>
31    <property name="env.XERCES_JAR" value="${solar.jar}/xercesImpl.jar"/>
32
33    <path id="classpath">
34        <pathelement location="${env.XML_APIS_JAR}"/>
35        <pathelement location="${env.XERCES_JAR}"/>
36        <pathelement location="${solar.jar}/unoil.jar"/>
37        <pathelement location="${solar.jar}/ridl.jar"/>
38        <pathelement location="${solar.jar}/jurt.jar"/>
39        <pathelement location="${solar.jar}/juh.jar"/>
40    </path>
41
42
43    <target name="init" >
44        <mkdir dir="${target.dir}"/>
45    </target>
46
47    <!-- compile java sources in ${package} -->
48    <target name="compile" depends="init">
49        <javac srcdir="${src.dir}"
50               destdir="${target.dir}"
51               debug="${debug}"
52               deprecation="${deprecation}"
53               optimize="${optimize}">
54            <classpath refid="classpath"/>
55        </javac>
56    </target>
57
58    <!-- package to jar -->
59    <target name="jar" depends="compile">
60        <jar destfile="${target.jar}">
61            <fileset dir="${target.dir}"
62                         includes="**/*.class" />
63            <fileset dir="${src.dir}"
64                         includes="**/*.properties" />
65            <manifest>
66                <attribute name="Main-Class" value="org.openoffice.xmerge.test.Driver"/>
67                <attribute name="Specification-Title" value="Apache OpenOffice XMerge Framework"/>
68                <attribute name="Specification-Vendor" value="Apache OpenOffice"/>
69                <attribute name="Specification-Version" value="0.6.0"/>
70                <attribute name="Implementation-Version" value="#IMPL-VERSION#"/>
71                <attribute name="Class-Path" value="xml-apis.jar xercesImpl.jar serializer.jar"/>
72            </manifest>
73         </jar>
74    </target>
75
76    <!-- clean up -->
77    <target name="clean">
78        <delete dir="${class.dir}"/>
79        <delete file="${target.jar}"/>
80    </target>
81
82    <target name="all" depends="jar">
83    </target>
84
85</project>
86
87