xref: /aoo41x/main/xmerge/source/minicalc/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="minicalc" default="all" basedir=".">
32
33    <property file="../inc/antbuild.properties"/>
34
35    <path id="classpath">
36        <pathelement location="${build.dir}/xmerge.jar"/>
37    </path>
38
39
40    <target name="init" >
41        <mkdir dir="${target.dir}"/>
42    </target>
43
44    <!-- compile java sources in ${package} -->
45    <target name="compile" depends="init">
46        <javac srcdir="${src.dir}"
47               destdir="${target.dir}"
48               debug="${debug}"
49               deprecation="${deprecation}"
50               optimize="${optimize}">
51            <classpath refid="classpath"/>
52        </javac>
53    </target>
54
55    <!-- package to jar -->
56    <target name="jar" depends="compile">
57        <jar destfile="${target.jar}">
58            <fileset dir="${target.dir}"
59                     includes="**/*.class" />
60            <metainf dir="${basedir}">
61                <filename name="converter.xml"/>
62            </metainf>
63         </jar>
64    </target>
65
66    <!-- clean up -->
67    <target name="clean">
68        <delete dir="${class.dir}"/>
69        <delete file="${target.jar}"/>
70    </target>
71
72    <target name="all" depends="jar">
73    </target>
74
75</project>
76
77