summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pax/source/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/pax/source/build.xml')
-rw-r--r--macros/latex/contrib/pax/source/build.xml87
1 files changed, 87 insertions, 0 deletions
diff --git a/macros/latex/contrib/pax/source/build.xml b/macros/latex/contrib/pax/source/build.xml
new file mode 100644
index 0000000000..0a7eae3ddf
--- /dev/null
+++ b/macros/latex/contrib/pax/source/build.xml
@@ -0,0 +1,87 @@
+<?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="../scripts/"/>
+ <property name="pdfbox.home" location="${basedir}"/> <!-- or somewhere else -->
+
+ <target name="init">
+ <mkdir dir="${build}"/>
+ </target>
+
+ <target name="compile"
+ depends="init"
+ description="compile the source"
+ >
+ <javac srcdir="${src}" destdir="${build}">
+ <classpath>
+ <pathelement location="${basedir}/lib/pdfbox.jar"/>
+ <pathelement location="${basedir}/lib/commons-logging.jar"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <path id="build.classpath">
+ <fileset dir="${basedir}">
+ <include name="lib/*.jar"/>
+ </fileset>
+ </path>
+
+ <pathconvert property="manifest.classpath" pathsep=" ">
+ <path refid="build.classpath"/>
+ <mapper>
+ <chainedmapper>
+ <flattenmapper/>
+ <globmapper from="*.jar" to="lib/*.jar"/>
+ </chainedmapper>
+ </mapper>
+ </pathconvert>
+
+ <target name="distctan"
+ depends="compile"
+ description="generate the distribution ctan"
+ >
+ <mkdir dir="${dist}"/>
+ <jar jarfile="${dist}/${ant.project.name}.jar"
+ manifest="${src}/MANIFEST.MF"
+ basedir="${build}"
+ includes="pax/**" >
+ <zipgroupfileset dir="lib" includes="*.jar"/>
+ </jar>
+ </target>
+
+ <target name="dist"
+ depends="compile"
+ description="generate the distribution"
+ >
+ <mkdir dir="${dist}"/>
+ <mkdir dir="${dist}/lib"/>
+ <copy todir="${dist}/lib" flatten="true">
+ <fileset dir="lib">
+ <include name="*.jar" />
+ </fileset>
+ </copy>
+ <jar jarfile="${dist}/${ant.project.name}.jar"
+ manifest="${src}/MANIFEST.MF"
+ basedir="${build}"
+ includes="pax/**" >
+ <manifest>
+ <attribute name="Class-Path" value="${manifest.classpath}" />
+ </manifest>
+ </jar>
+ </target>
+
+
+ <target name="clean"
+ description="clean up"
+ >
+ <delete dir="${build}"/>
+ <delete dir="${dist}/lib"/>
+ <delete file="${dist}/pax.jar" />
+ </target>
+
+</project>