forked from CrossRef/pdfmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
45 lines (40 loc) · 1.63 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
38
39
40
41
42
43
44
45
<project default="all">
<property name="output.dir" value="${basedir}/output"/>
<property name="classes.dir" value="${output.dir}/classes"/>
<property name="src.dir" value="${basedir}/src"/>
<property name="lib.dir" value="${basedir}/lib"/>
<target name="clean">
<delete dir="${output.dir}" failonerror="false"/>
<delete file="${basedir}/pdfmark.jar" failonerror="false"/>
</target>
<target name="build" depends="clean">
<mkdir dir="${output.dir}"/>
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}"
destdir="${classes.dir}" source="1.7" target="1.7">
<classpath>
<fileset dir="${lib.dir}" includes="*.jar"/>
</classpath>
</javac>
</target>
<target name="package" depends="build">
<jar destfile="${basedir}/pdfmark.jar">
<fileset dir="${classes.dir}"/>
<zipfileset src="lib/jargs.jar" excludes="META-INF"/>
<zipfileset src="lib/commons-logging-adapters-1.1.1.jar" excludes="META-INF"/>
<zipfileset src="lib/pdfbox-1.6.0.jar" excludes="META-INF"/>
<zipfileset src="lib/httpclient-4.0.jar" excludes="META-INF"/>
<zipfileset src="lib/httpcore-nio-4.0.1.jar" excludes="META-INF"/>
<zipfileset src="lib/itextpdf-5.1.3.jar" excludes="META-INF"/>
<zipfileset src="lib/commons-logging-api-1.1.1.jar" excludes="META-INF"/>
<zipfileset src="lib/commons-logging-1.1.1.jar" excludes="META-INF"/>
<zipfileset src="lib/httpmime-4.0.jar" excludes="META-INF"/>
<zipfileset src="lib/httpcore-4.0.1.jar" excludes="META-INF"/>
<manifest>
<attribute name="Main-Class"
value="org.crossref.pdfmark.Main"/>
</manifest>
</jar>
</target>
<target name="all" depends="package"/>
</project>