Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
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
fuchsica83f5a8d962
diff --git a/.classpath b/.classpathindex ad6185749..28dc340f6 100644--- a/.classpath+++ b/.classpath@@ -1,7 +1,7 @@<?xml version="1.0" encoding="UTF-8"?><classpath><classpathentry kind="src" path="source"/>- <classpathentry excluding="htdocsdefault/|locale/|proxymsg/|yacy/|env/|env/" kind="src" output="htroot" path="htroot"/>+ <classpathentry excluding="env/|htdocsdefault/|proxymsg/|yacy/|env/" kind="src" output="htroot" path="htroot"/><classpathentry kind="src" path="htroot/htdocsdefault"/><classpathentry kind="src" path="htroot/yacy"/><classpathentry kind="src" path="htroot/env"/>@@ -23,7 +23,6 @@<classpathentry kind="lib" path="libx/jsch-0.1.21.jar"/><classpathentry kind="lib" path="libx/log4j-1.2.9.jar"/><classpathentry kind="lib" path="libx/odf_utils_05_11_29.jar"/>- <classpathentry kind="lib" path="libx/PDFBox-0.7.2.jar"/><classpathentry kind="lib" path="libx/saaj.jar"/><classpathentry kind="lib" path="libx/sbbi-upnplib-1.0.3.jar"/><classpathentry kind="lib" path="libx/tm-extractors-0.4.jar"/>@@ -37,5 +36,7 @@<classpathentry kind="lib" path="libx/webcat-0.1-swf.jar"/><classpathentry kind="lib" path="libx/J7Zip-modified.jar"/><classpathentry kind="lib" path="libx/commons-logging.jar"/>+ <classpathentry kind="lib" path="libx/PDFBox-0.7.3.jar"/>+ <classpathentry kind="lib" path="libx/FontBox-0.1.0-dev.jar"/><classpathentry kind="output" path="gen"/></classpath>diff --git a/libx/FontBox-0.1.0-dev.jar b/libx/FontBox-0.1.0-dev.jarnew file mode 100644index 000000000..c9030febdBinary files /dev/null and b/libx/FontBox-0.1.0-dev.jar differdiff --git a/libx/FontBox.License b/libx/FontBox.Licensenew file mode 100644index 000000000..29b9cec26--- /dev/null+++ b/libx/FontBox.License@@ -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.\ No newline at end of filediff --git a/source/de/anomic/plasma/parser/pdf/build.xml b/source/de/anomic/plasma/parser/pdf/build.xmlindex 24a8c51b3..6236be25c 100644--- a/source/de/anomic/plasma/parser/pdf/build.xml+++ b/source/de/anomic/plasma/parser/pdf/build.xml@@ -1,57 +1,49 @@<?xml version="1.0"?><project name="YACY - pdfParser" default="dist">- <description>+ <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="yacyContentParser_${parserShortName}"/>- <property name="parserArchive" location="${release}/${parserLongName}_${parserVersion}.tgz"/>-- <target name="compile">- <javac srcdir="${src}/de/anomic/plasma/parser/${parserShortName}" destdir="${build}" source="${javacSource}" target="${javacTarget}" debug="true" debuglevel="lines,vars,source">- <classpath>- <pathelement location="${build}" />-- <!-- main lib needed to parse pdf files -->- <pathelement location="${libx}/PDFBox-0.7.3.jar" />- </classpath>- </javac>- </target>--- <target name="zip" depends="compile">- <tar destfile="${parserArchive}" compression="gzip">- <tarfileset dir="${libx}"- includes="PDFBox-0.7.3.*"- prefix="${releaseFileParentDir}/libx/"- dirmode="755" mode="644"/>- <tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}"- prefix="${releaseFileParentDir}/source/de/anomic/plasma/parser/${parserShortName}"- dirmode="755" mode="644"/>- <tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}"- prefix="${releaseFileParentDir}/classes/de/anomic/plasma/parser/${parserShortName}"- dirmode="755" mode="644"/>- </tar>- </target>-- <target name="copy" depends="compile">- <copy todir="${release}/libx/">- <fileset dir="${libx}" includes="PDFBox-0.7.3.*"/>- </copy>- <copy todir="${release}/source/de/anomic/plasma/parser/${parserShortName}">- <fileset dir="${src}/de/anomic/plasma/parser/${parserShortName}" includes="**/*"/>- </copy>- <copy todir="${release}/classes/de/anomic/plasma/parser/${parserShortName}">- <fileset dir="${build}/de/anomic/plasma/parser/${parserShortName}" includes="**/*"/>- </copy>- </target>--- <target name="dist" depends="compile,zip" description="Compile and zip the parser"/>--+ <property name="parserShortName" value="pdf" />+ <property name="parserVersion" value="0.1" />++ <property name="parserLongName" value="yacyContentParser_${parserShortName}" />+ <property name="parserArchive" location="${release}/${parserLongName}_${parserVersion}.tgz" />++ <target name="compile">+ <javac srcdir="${src}/de/anomic/plasma/parser/${parserShortName}" destdir="${build}" source="${javacSource}" target="${javacTarget}" debug="true" debuglevel="lines,vars,source">+ <classpath>+ <pathelement location="${build}" />+ <!-- main lib needed to parse pdf files -->+ <pathelement location="${libx}/PDFBox-0.7.3.jar" />+ <!-- additional fontparsing lib, part of PDFBox -->+ <pathelement location="${libx}/FontBox-0.1.0-dev.jar" />+ </classpath>+ </javac>+ </target>++ <target name="zip" depends="compile">+ <tar destfile="${parserArchive}" compression="gzip">+ <tarfileset dir="${libx}" includes="PDFBox-0.7.3.*" prefix="${releaseFileParentDir}/libx/" dirmode="755" mode="644" />+ <tarfileset dir="${libx}" includes="FontBox*" prefix="${releaseFileParentDir}/libx/" dirmode="755" mode="644" />+ <tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}" prefix="${releaseFileParentDir}/source/de/anomic/plasma/parser/${parserShortName}" dirmode="755" mode="644" />+ <tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}" prefix="${releaseFileParentDir}/classes/de/anomic/plasma/parser/${parserShortName}" dirmode="755" mode="644" />+ </tar>+ </target>++ <target name="copy" depends="compile">+ <copy todir="${release}/libx/">+ <fileset dir="${libx}" includes="PDFBox-0.7.3.*,FontBox*" />+ </copy>+ <copy todir="${release}/source/de/anomic/plasma/parser/${parserShortName}">+ <fileset dir="${src}/de/anomic/plasma/parser/${parserShortName}" includes="**/*" />+ </copy>+ <copy todir="${release}/classes/de/anomic/plasma/parser/${parserShortName}">+ <fileset dir="${build}/de/anomic/plasma/parser/${parserShortName}" includes="**/*" />+ </copy>+ </target>+++ <target name="dist" depends="compile,zip" description="Compile and zip the parser" /></project>diff --git a/source/de/anomic/plasma/parser/pdf/pdfParser.java b/source/de/anomic/plasma/parser/pdf/pdfParser.javaindex 2736e1fb8..c32c7011e 100644--- a/source/de/anomic/plasma/parser/pdf/pdfParser.java+++ b/source/de/anomic/plasma/parser/pdf/pdfParser.java@@ -78,7 +78,7 @@ public class pdfParser extends AbstractParser implements Parser {* @see Parser#getLibxDependences()*/private static final String[] LIBX_DEPENDENCIES = new String[] {- "PDFBox-0.7.3.jar"+ "PDFBox-0.7.3.jar", "FontBox-0.1.0-dev.jar"};public pdfParser() {