Debian Codegraph @

texmf-dist/source/latex/pax/build.xml

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 <?xml version="1.0" encoding="us-ascii"?>
2 <project name="pax" default="dist" basedir=".">
3 <description>
4 Build file for PDFAnnotExtractor
5 </description>
6
7 <property name="src" location="src"/>
8 <property name="build" location="build"/>
9 <property name="dist" location="../scripts/"/>
10 <property name="pdfbox.home" location="${basedir}"/> <!-- or somewhere else -->
11
12 <target name="init">
13 <mkdir dir="${build}"/>
14 </target>
15
16 <target name="compile"
17 depends="init"
18 description="compile the source"
19 >
20 <javac srcdir="${src}" destdir="${build}">
21 <classpath>
22 <pathelement location="${basedir}/lib/pdfbox.jar"/>
23 <pathelement location="${basedir}/lib/commons-logging.jar"/>
24 </classpath>
25 </javac>
26 </target>
27
28 <path id="build.classpath">
29 <fileset dir="${basedir}">
30 <include name="lib/*.jar"/>
31 </fileset>
32 </path>
33
34 <pathconvert property="manifest.classpath" pathsep=" ">
35 <path refid="build.classpath"/>
36 <mapper>
37 <chainedmapper>
38 <flattenmapper/>
39 <globmapper from="*.jar" to="lib/*.jar"/>
40 </chainedmapper>
41 </mapper>
42 </pathconvert>
43
44 <target name="distctan"
45 depends="compile"
46 description="generate the distribution ctan"
47 >
48 <mkdir dir="${dist}"/>
49 <jar jarfile="${dist}/${ant.project.name}.jar"
50 manifest="${src}/MANIFEST.MF"
51 basedir="${build}"
52 includes="pax/**" >
53 <zipgroupfileset dir="lib" includes="*.jar"/>
54 </jar>
55 </target>
56
57 <target name="dist"
58 depends="compile"
59 description="generate the distribution"
60 >
61 <mkdir dir="${dist}"/>
62 <mkdir dir="${dist}/lib"/>
63 <copy todir="${dist}/lib" flatten="true">
64 <fileset dir="lib">
65 <include name="*.jar" />
66 </fileset>
67 </copy>
68 <jar jarfile="${dist}/${ant.project.name}.jar"
69 manifest="${src}/MANIFEST.MF"
70 basedir="${build}"
71 includes="pax/**" >
72 <manifest>
73 <attribute name="Class-Path" value="${manifest.classpath}" />
74 </manifest>
75 </jar>
76 </target>
77
78
79 <target name="clean"
80 description="clean up"
81 >
82 <delete dir="${build}"/>
83 <delete dir="${dist}/lib"/>
84 <delete file="${dist}/pax.jar" />
85 </target>
86
87 </project>