You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.0 KiB
55 lines
2.0 KiB
<?xml version="1.0"?>
|
|
<project name="YACY - pdfParser" default="dist">
|
|
<description>
|
|
A class to parse pdf documents (application/pdf)
|
|
</description>
|
|
|
|
<property name="parserShortName" value="pdf"/>
|
|
<property name="parserVersion" value="0.1"/>
|
|
|
|
<property name="parserLongName" value="${parserShortName}Parser"/>
|
|
<property name="parserArchive" location="${release}/${parserLongName}_${parserVersion}.tgz"/>
|
|
|
|
<target name="compile">
|
|
<echo message="Compiling ${parserLongName} Version ${parserVersion} ..."/>
|
|
<javac srcdir="${src}/de/anomic/plasma/parser/${parserShortName}" destdir="${build}" source="${javacSource}" target="${javacTarget}">
|
|
<classpath>
|
|
<pathelement location="${build}" />
|
|
|
|
<!-- main lib needed to parse pdf files -->
|
|
<pathelement location="${libx}/PDFBox-0.7.1.jar" />
|
|
|
|
<!-- libs needed by the main lib -->
|
|
<pathelement location="${libx}/log4j-1.2.9.jar" />
|
|
</classpath>
|
|
</javac>
|
|
</target>
|
|
|
|
|
|
<target name="zip" depends="compile">
|
|
<echo message="Compressing ${parserLongName} Version ${parserVersion} ..."/>
|
|
<tar destfile="${parserArchive}" compression="gzip">
|
|
<tarfileset dir="${libx}"
|
|
includes="PDFBox-0.7.1.*"
|
|
prefix="libx/"
|
|
dirmode="755" mode="644"/>
|
|
<tarfileset dir="${libx}"
|
|
includes="log4j-1.2.9.*"
|
|
prefix="libx/"
|
|
dirmode="755" mode="644"/>
|
|
<tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}"
|
|
prefix="source/de/anomic/plasma/parser/${parserShortName}"
|
|
dirmode="755" mode="644"/>
|
|
<tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}"
|
|
prefix="classes/de/anomic/plasma/parser/${parserShortName}"
|
|
dirmode="755" mode="644"/>
|
|
</tar>
|
|
</target>
|
|
|
|
|
|
<target name="dist" depends="compile,zip" description="Compile and zip the parser"/>
|
|
|
|
|
|
</project>
|
|
|