File: build.xml

package info (click to toggle)
jabref-plugin-oo 0.7.4+ds-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 388 kB
  • ctags: 365
  • sloc: java: 3,772; xml: 79; sh: 48; makefile: 12
file content (73 lines) | stat: -rwxr-xr-x 2,394 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0"?>
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

   Example Ant build file how to create a jar for distribution 
   for an export plugin.

   Version:  $Revision: 2186 $
             $Date: 2007-07-19 03:35:35 +0200 (Thu, 19 Jul 2007) $
             $Author: coezbek $

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<project name="net.sf.jabref.oo.ooplugin" default="jar" basedir=".">

	<!-- Properties -->
	<property name="version" value="0.7.4" />
	<property name="build.classes" value="classes" />
	<property name="jabref.dir" value="/usr/share/java" />
	<property name="oo.dir" value="/usr/share/java/openoffice" />
    <property name="jar.dir" value="dist" />
    <property name="jar" value="${jar.dir}/${ant.project.name}-${version}.jar" />
	
	<path id="classpath">
		<fileset dir="${oo.dir}">
            <include name="jurt.jar" />
            <include name="juh.jar" />
            <include name="unoil.jar" />
            <include name="ridl.jar" />
		</fileset>
		<fileset dir="${jabref.dir}">
            <include name="jabref.jar" />
            <include name="glazedlists.jar" />
            <include name="antlr3.jar" />
            <include name="antlr3-runtime.jar" />
            <include name="forms.jar" />
		</fileset>
	</path>

	<!-- Compiles project excluding tests -->
	<target name="compile">
		<mkdir dir="${build.classes}" />
		<javac debug="on" deprecation="on" destdir="${build.classes}" source="1.5" target="1.5">
			<src path="." />
			<classpath refid="classpath" />
		</javac>
	</target>

	<!-- Jars up project -->
	<target name="jar" depends="compile" >
		<jar destfile="${jar}">
			<fileset dir=".">
                <exclude name="UNO*"/>
                <exclude name="dist"/>
                <exclude name="lib"/>
                <include name="plugin.xml"/>
                <include name="CHANGELOG"/>
                <include name="LICENSE"/>
                <include name="gpl-2.0.txt"/>
                <include name="OOPlugin.html"/>
                <include name="images/**"/>
            </fileset>
            <fileset dir="classes">
                <include name="**"/>
            </fileset>
        </jar>
	</target>

	<target name="clean" description="Clean project">
		<delete dir="${build.classes}" />
		<delete file="${jar}" />

	</target>

</project>