blob: 230cd3e59d6a32e0e2603294ac1b6ca8cba39106 (
plain)
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
|
<?xml version="1.0" encoding="us-ascii"?>
<project name="pax" default="dist" basedir=".">
<description>
Build file for PDFAnnotExtractor
</description>
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="."/>
<property name="pdfbox.home" location="${basedir}"/> <!-- or somewhere else -->
<property name="pdfbox.name" value="PDFBox-0.7.2.jar"/>
<target name="init">
<mkdir dir="${build}"/>
</target>
<target name="compile"
depends="init"
description="compile the source"
>
<javac srcdir="${src}" destdir="${build}" target="1.4" source="1.4">
<classpath>
<!-- try with and without subdirectory `lib' -->
<pathelement location="${pdfbox.home}/lib/${pdfbox.name}"/>
<pathelement location="${pdfbox.home}/${pdfbox.name}"/>
</classpath>
</javac>
</target>
<target name="dist"
depends="compile"
description="generate the distribution"
>
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/${ant.project.name}.jar"
manifest="${src}/MANIFEST.MF"
basedir="${build}"
includes="pax/**"
/>
</target>
<target name="clean"
description="clean up"
>
<delete dir="${build}"/>
<delete file="${dist}/${ant.project.name}.jar"/>
</target>
</project>
|