-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.xml
37 lines (33 loc) · 1.2 KB
/
build.xml
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
<project name="pdf2xml" default="package" basedir=".">
<property name="src.dir" location="src"/>
<property name="classes.dir" location="classes"/>
<property name="lib.dir" location="lib"/>
<property name="output.jar" location="pdf2xml.jar"/>
<target name="init">
<tstamp/>
<mkdir dir="${classes.dir}"/>
</target>
<target name="build" depends="init">
<javac srcdir="${src.dir}" destdir="${classes.dir}">
<classpath>
<fileset dir="${lib.dir}" includes="*.jar"/>
</classpath>
</javac>
</target>
<target name="package" depends="build">
<jar destfile="pdf2xml-${DSTAMP}.jar">
<fileset dir="${classes.dir}"/>
<zipfileset src="${lib.dir}/pdfbox-1.2.1.jar" excludes="META-INF"/>
<zipfileset src="${lib.dir}/fontbox-1.2.1.jar" excludes="META-INF"/>
<zipfileset src="${lib.dir}/commons-logging-1.1.1.jar" excludes="META-INF"/>
<zipfileset src="${lib.dir}/args4j-2.0.11.jar" excludes="META-INF"/>
<manifest>
<attribute name="Main-Class"
value="org.crossref.pdf2xml.Main"/>
</manifest>
</jar>
</target>
<target name="clean">
<delete dir="${classes.dir}" failonerror="false"/>
</target>
</project>