summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/pax/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/pax/build.xml')
-rw-r--r--Master/texmf-dist/source/latex/pax/build.xml76
1 files changed, 57 insertions, 19 deletions
diff --git a/Master/texmf-dist/source/latex/pax/build.xml b/Master/texmf-dist/source/latex/pax/build.xml
index 230cd3e59d6..0a7eae3ddfc 100644
--- a/Master/texmf-dist/source/latex/pax/build.xml
+++ b/Master/texmf-dist/source/latex/pax/build.xml
@@ -6,44 +6,82 @@
<property name="src" location="src"/>
<property name="build" location="build"/>
- <property name="dist" location="."/>
+ <property name="dist" location="../scripts/"/>
<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">
+ depends="init"
+ description="compile the source"
+ >
+ <javac srcdir="${src}" destdir="${build}">
<classpath>
- <!-- try with and without subdirectory `lib' -->
- <pathelement location="${pdfbox.home}/lib/${pdfbox.name}"/>
- <pathelement location="${pdfbox.home}/${pdfbox.name}"/>
+ <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"
- >
+ 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="${src}/MANIFEST.MF"
+ basedir="${build}"
+ includes="pax/**" >
+ <manifest>
+ <attribute name="Class-Path" value="${manifest.classpath}" />
+ </manifest>
+ </jar>
</target>
+
<target name="clean"
- description="clean up"
- >
+ description="clean up"
+ >
<delete dir="${build}"/>
- <delete file="${dist}/${ant.project.name}.jar"/>
+ <delete dir="${dist}/lib"/>
+ <delete file="${dist}/pax.jar" />
</target>
</project>