New upstream release.
[debian/jabref-plugin-oo.git] / build.xml
1 <?xml version="1.0"?>
2 <!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3
4    Example Ant build file how to create a jar for distribution 
5    for an export plugin.
6
7    Version:  $Revision: 2186 $
8              $Date: 2007-07-19 03:35:35 +0200 (Thu, 19 Jul 2007) $
9              $Author: coezbek $
10
11 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
12 <project name="net.sf.jabref.oo.ooplugin" default="jar" basedir=".">
13
14         <!-- Properties -->
15         <property name="version" value="0.8" />
16         <property name="build.classes" value="classes" />
17         <property name="jabref.build.dir" value="lib" />
18     <property name="jar.dir" value="dist" />
19     <property name="jar" value="${jar.dir}/${ant.project.name}-${version}.jar" />
20         
21         <path id="classpath">
22                 <fileset dir="${jabref.build.dir}">
23             <include name="jurt.jar" />
24             <include name="juh.jar" />
25             <include name="unoil.jar" />
26             <include name="ridl.jar" />
27             <include name="JabRef-2.6.jar" />
28                 </fileset>
29         </path>
30
31         <!-- Compiles project excluding tests -->
32         <target name="compile">
33                 <mkdir dir="${build.classes}" />
34                 <javac debug="on" deprecation="on" destdir="${build.classes}" source="1.5" target="1.5">
35                         <src path="." />
36                         <classpath refid="classpath" />
37                 </javac>
38         </target>
39
40         <!-- Jars up project -->
41         <target name="jar" depends="compile" >
42                 <jar destfile="${jar}">
43                         <fileset dir=".">
44                 <exclude name="UNO*"/>
45                 <exclude name="dist"/>
46                 <exclude name="lib"/>
47                 <include name="plugin.xml"/>
48                 <include name="CHANGELOG"/>
49                 <include name="LICENSE"/>
50                 <include name="gpl-2.0.txt"/>
51                 <include name="OOPlugin.html"/>
52                 <include name="images/**"/>
53             </fileset>
54             <fileset dir="classes">
55                 <include name="**"/>
56             </fileset>
57         </jar>
58         </target>
59
60         <target name="clean" description="Clean project">
61                 <delete dir="${build.classes}" />
62                 <delete file="${jar}" />
63
64         </target>
65
66 </project>