Add external lib FontBox which is part of the PDFBox (they extracted the font handling code into this package in 0.7.3).
Add the packages to the eclipse .classpath. Closes: http://forum.yacy-websuche.de/viewtopic.php?f=5&t=453 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4165 6c8d7289-2bf4-0310-a012-ef5d649a1542pull/1/head
parent
3352474dd8
commit
ca83f5a8d9
Binary file not shown.
@ -0,0 +1,25 @@
|
|||||||
|
Copyright (c) 2003-2005, www.fontbox.org
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
3. Neither the name of fontbox; nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from this
|
||||||
|
software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||||
|
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@ -1,57 +1,49 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<project name="YACY - pdfParser" default="dist">
|
<project name="YACY - pdfParser" default="dist">
|
||||||
<description>
|
<description>
|
||||||
A class to parse pdf documents (application/pdf)
|
A class to parse pdf documents (application/pdf)
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<property name="parserShortName" value="pdf"/>
|
<property name="parserShortName" value="pdf" />
|
||||||
<property name="parserVersion" value="0.1"/>
|
<property name="parserVersion" value="0.1" />
|
||||||
|
|
||||||
<property name="parserLongName" value="yacyContentParser_${parserShortName}"/>
|
<property name="parserLongName" value="yacyContentParser_${parserShortName}" />
|
||||||
<property name="parserArchive" location="${release}/${parserLongName}_${parserVersion}.tgz"/>
|
<property name="parserArchive" location="${release}/${parserLongName}_${parserVersion}.tgz" />
|
||||||
|
|
||||||
<target name="compile">
|
<target name="compile">
|
||||||
<javac srcdir="${src}/de/anomic/plasma/parser/${parserShortName}" destdir="${build}" source="${javacSource}" target="${javacTarget}" debug="true" debuglevel="lines,vars,source">
|
<javac srcdir="${src}/de/anomic/plasma/parser/${parserShortName}" destdir="${build}" source="${javacSource}" target="${javacTarget}" debug="true" debuglevel="lines,vars,source">
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement location="${build}" />
|
<pathelement location="${build}" />
|
||||||
|
<!-- main lib needed to parse pdf files -->
|
||||||
<!-- main lib needed to parse pdf files -->
|
<pathelement location="${libx}/PDFBox-0.7.3.jar" />
|
||||||
<pathelement location="${libx}/PDFBox-0.7.3.jar" />
|
<!-- additional fontparsing lib, part of PDFBox -->
|
||||||
</classpath>
|
<pathelement location="${libx}/FontBox-0.1.0-dev.jar" />
|
||||||
</javac>
|
</classpath>
|
||||||
</target>
|
</javac>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="zip" depends="compile">
|
<target name="zip" depends="compile">
|
||||||
<tar destfile="${parserArchive}" compression="gzip">
|
<tar destfile="${parserArchive}" compression="gzip">
|
||||||
<tarfileset dir="${libx}"
|
<tarfileset dir="${libx}" includes="PDFBox-0.7.3.*" prefix="${releaseFileParentDir}/libx/" dirmode="755" mode="644" />
|
||||||
includes="PDFBox-0.7.3.*"
|
<tarfileset dir="${libx}" includes="FontBox*" prefix="${releaseFileParentDir}/libx/" dirmode="755" mode="644" />
|
||||||
prefix="${releaseFileParentDir}/libx/"
|
<tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}" prefix="${releaseFileParentDir}/source/de/anomic/plasma/parser/${parserShortName}" dirmode="755" mode="644" />
|
||||||
dirmode="755" mode="644"/>
|
<tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}" prefix="${releaseFileParentDir}/classes/de/anomic/plasma/parser/${parserShortName}" dirmode="755" mode="644" />
|
||||||
<tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}"
|
</tar>
|
||||||
prefix="${releaseFileParentDir}/source/de/anomic/plasma/parser/${parserShortName}"
|
</target>
|
||||||
dirmode="755" mode="644"/>
|
|
||||||
<tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}"
|
<target name="copy" depends="compile">
|
||||||
prefix="${releaseFileParentDir}/classes/de/anomic/plasma/parser/${parserShortName}"
|
<copy todir="${release}/libx/">
|
||||||
dirmode="755" mode="644"/>
|
<fileset dir="${libx}" includes="PDFBox-0.7.3.*,FontBox*" />
|
||||||
</tar>
|
</copy>
|
||||||
</target>
|
<copy todir="${release}/source/de/anomic/plasma/parser/${parserShortName}">
|
||||||
|
<fileset dir="${src}/de/anomic/plasma/parser/${parserShortName}" includes="**/*" />
|
||||||
<target name="copy" depends="compile">
|
</copy>
|
||||||
<copy todir="${release}/libx/">
|
<copy todir="${release}/classes/de/anomic/plasma/parser/${parserShortName}">
|
||||||
<fileset dir="${libx}" includes="PDFBox-0.7.3.*"/>
|
<fileset dir="${build}/de/anomic/plasma/parser/${parserShortName}" includes="**/*" />
|
||||||
</copy>
|
</copy>
|
||||||
<copy todir="${release}/source/de/anomic/plasma/parser/${parserShortName}">
|
</target>
|
||||||
<fileset dir="${src}/de/anomic/plasma/parser/${parserShortName}" includes="**/*"/>
|
|
||||||
</copy>
|
|
||||||
<copy todir="${release}/classes/de/anomic/plasma/parser/${parserShortName}">
|
<target name="dist" depends="compile,zip" description="Compile and zip the parser" />
|
||||||
<fileset dir="${build}/de/anomic/plasma/parser/${parserShortName}" includes="**/*"/>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="dist" depends="compile,zip" description="Compile and zip the parser"/>
|
|
||||||
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
||||||
|
Loading…
Reference in new issue