xref: /aoo41x/main/xmerge/source/bridge/build.xml (revision cdf0e10c)
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 #*************************************************************************
4 #
5  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6
7  Copyright 2000, 2010 Oracle and/or its affiliates.
8
9  OpenOffice.org - a multi-platform office productivity suite
10
11  This file is part of OpenOffice.org.
12
13  OpenOffice.org is free software: you can redistribute it and/or modify
14  it under the terms of the GNU Lesser General Public License version 3
15  only, as published by the Free Software Foundation.
16
17  OpenOffice.org is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  GNU Lesser General Public License version 3 for more details
21  (a copy is included in the LICENSE file that accompanied this code).
22
23  You should have received a copy of the GNU Lesser General Public License
24  version 3 along with OpenOffice.org.  If not, see
25  <http://www.openoffice.org/license.html>
26  for a copy of the LGPLv3 License.
27
28 #*************************************************************************
29 -->
30
31<project name="XMergeBridge" default="all" basedir=".">
32
33    <property file="../inc/antbuild.properties"/>
34
35    <path id="classpath">
36        <pathelement location="${build.dir}/xmerge.jar"/>
37        <pathelement location="${solar.jar}/unoil.jar"/>
38        <pathelement location="${solar.jar}/ridl.jar"/>
39        <pathelement location="${solar.jar}/jurt.jar"/>
40        <pathelement location="${solar.jar}/juh.jar"/>
41    </path>
42
43
44    <target name="init" >
45        <mkdir dir="${target.dir}"/>
46		<echo message="--------------------------------------------------------------------------------" />
47        <echo message="debug is ${debug}"/>
48		<echo message="--------------------------------------------------------------------------------" />
49    </target>
50
51    <!-- compile java sources in ${package} -->
52    <target name="compile" depends="init">
53        <javac srcdir="${src.dir}"
54               destdir="${target.dir}"
55			   debug="${debug}"
56               deprecation="${deprecation}"
57               optimize="${optimize}">
58            <classpath refid="classpath"/>
59        </javac>
60    </target>
61
62    <!-- package to jar -->
63    <target name="jar" depends="compile">
64        <jar destfile="${target.jar}"
65             manifest="manifest.mf">
66            <fileset dir="${target.dir}"
67                     includes="**/*.class" />
68         </jar>
69    </target>
70
71    <!-- clean up -->
72    <target name="clean">
73        <delete dir="${class.dir}"/>
74        <delete file="${target.jar}"/>
75    </target>
76
77    <target name="all" depends="jar">
78    </target>
79
80</project>
81
82