Clement Escoffier | 6f60df1 | 2013-07-02 16:58:45 +0000 | [diff] [blame] | 1 | <?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.checker" 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" |
Clement Escoffier | 259653c | 2014-05-06 15:24:29 +0000 | [diff] [blame^] | 71 | classpathref="classpath" |
Clement Escoffier | 6f60df1 | 2013-07-02 16:58:45 +0000 | [diff] [blame] | 72 | /> |
| 73 | </target> |
| 74 | |
| 75 | </project> |