xref: /aoo42x/main/xmerge/source/wordsmith/build.xml (revision 5111cb72)
1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*5111cb72SAndrew Rist<!--***********************************************************
3*5111cb72SAndrew Rist *
4*5111cb72SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
5*5111cb72SAndrew Rist * or more contributor license agreements.  See the NOTICE file
6*5111cb72SAndrew Rist * distributed with this work for additional information
7*5111cb72SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
8*5111cb72SAndrew Rist * to you under the Apache License, Version 2.0 (the
9*5111cb72SAndrew Rist * "License"); you may not use this file except in compliance
10*5111cb72SAndrew Rist * with the License.  You may obtain a copy of the License at
11*5111cb72SAndrew Rist *
12*5111cb72SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
13*5111cb72SAndrew Rist *
14*5111cb72SAndrew Rist * Unless required by applicable law or agreed to in writing,
15*5111cb72SAndrew Rist * software distributed under the License is distributed on an
16*5111cb72SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17*5111cb72SAndrew Rist * KIND, either express or implied.  See the License for the
18*5111cb72SAndrew Rist * specific language governing permissions and limitations
19*5111cb72SAndrew Rist * under the License.
20*5111cb72SAndrew Rist *
21*5111cb72SAndrew Rist ***********************************************************-->
22*5111cb72SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir
25cdf0e10cSrcweir<project name="wordsmith" default="all" basedir=".">
26cdf0e10cSrcweir
27cdf0e10cSrcweir    <property file="../inc/antbuild.properties"/>
28cdf0e10cSrcweir
29cdf0e10cSrcweir    <path id="classpath">
30cdf0e10cSrcweir        <pathelement location="${build.dir}/xmerge.jar"/>
31cdf0e10cSrcweir    </path>
32cdf0e10cSrcweir
33cdf0e10cSrcweir
34cdf0e10cSrcweir    <target name="init" >
35cdf0e10cSrcweir        <mkdir dir="${target.dir}"/>
36cdf0e10cSrcweir    </target>
37cdf0e10cSrcweir
38cdf0e10cSrcweir    <!-- compile java sources in ${package} -->
39cdf0e10cSrcweir    <target name="compile" depends="init">
40cdf0e10cSrcweir        <javac srcdir="${src.dir}"
41cdf0e10cSrcweir               destdir="${target.dir}"
42cdf0e10cSrcweir               debug="${debug}"
43cdf0e10cSrcweir               deprecation="${deprecation}"
44cdf0e10cSrcweir               optimize="${optimize}">
45cdf0e10cSrcweir            <classpath refid="classpath"/>
46cdf0e10cSrcweir        </javac>
47cdf0e10cSrcweir    </target>
48cdf0e10cSrcweir
49cdf0e10cSrcweir    <!-- package to jar -->
50cdf0e10cSrcweir    <target name="jar" depends="compile">
51cdf0e10cSrcweir        <jar destfile="${target.jar}">
52cdf0e10cSrcweir            <fileset dir="${target.dir}"
53cdf0e10cSrcweir                     includes="**/*.class" />
54cdf0e10cSrcweir            <metainf dir="${basedir}">
55cdf0e10cSrcweir                <filename name="converter.xml"/>
56cdf0e10cSrcweir            </metainf>
57cdf0e10cSrcweir         </jar>
58cdf0e10cSrcweir    </target>
59cdf0e10cSrcweir
60cdf0e10cSrcweir    <!-- clean up -->
61cdf0e10cSrcweir    <target name="clean">
62cdf0e10cSrcweir        <delete dir="${class.dir}"/>
63cdf0e10cSrcweir        <delete file="${target.jar}"/>
64cdf0e10cSrcweir    </target>
65cdf0e10cSrcweir
66cdf0e10cSrcweir    <target name="all" depends="jar">
67cdf0e10cSrcweir    </target>
68cdf0e10cSrcweir
69cdf0e10cSrcweir</project>
70cdf0e10cSrcweir
71