blob: 946ac592c8df39c70846a66024d86da71bc7a105 [file] [log] [blame]
Clement Escoffierd85236c2013-04-22 12:12:33 +00001<?xml version="1.0"?>
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<project name="spell.english" default="package" basedir="">
23
24 <property name="src.dir" value="src"/>
25 <property name="lib.dir" value="libs"/>
26 <property name="build.dir" value="output/classes"/>
27 <property name="output.dir" value="output"/>
28
29 <taskdef resource="aQute/bnd/ant/taskdef.properties"
30 classpath="../../tasks/bnd-${bnd.version}.jar"/>
31 <taskdef name="ipojo" classpath="../../tasks/org.apache.felix.ipojo.ant-${ipojo.ant.version}.jar"
32 classname="org.apache.felix.ipojo.task.IPojoTask"/>
33
34 <target name="clean">
35 <delete dir="${build.dir}"/>
36 <delete dir="${output.dir}"/>
37 <delete dir="${lib.dir}"/>
38 </target>
39
40 <target name="buildclasspath">
41 <copy file="../spell.services/output/spell.services.jar" todir="${lib.dir}"/>
42 <copy file="../../tasks/org.apache.felix.ipojo.ant-${ipojo.ant.version}.jar" todir="${lib.dir}"/>
43 </target>
44
45 <path id="classpath">
46 <fileset dir="${lib.dir}" includes="**/*.jar"/>
47 </path>
48
49 <target name="compile" depends="clean, buildclasspath">
50 <mkdir dir="${output.dir}"/>
51 <mkdir dir="${build.dir}"/>
52
53 <javac srcdir="${src.dir}"
54 destdir="${build.dir}"
55 debug="on"
56 classpathref="classpath"
57 />
58
59 </target>
60
61 <target name="package" depends="compile">
62 <bnd
63 classpath="${build.dir}"
64 failok="false"
65 exceptions="true"
66 files="${ant.project.name}.bnd"
67 output="${output.dir}"/>
68
69 <ipojo
70 input="${output.dir}/${ant.project.name}.jar"
71 />
72 </target>
73
74</project>