mirror of
https://github.com/yacy/yacy_search_server.git
synced 2026-10-25 05:54:15 +00:00
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-ef5d649a1542
This commit is contained in:
1 parent
3352474dd8
commit
ca83f5a8d9
5 files changed
+68
-50
No files matched your search
+3
-2
@@ -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>
|
||||
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"?>
|
||||
<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="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>
|
||||
|
||||
<property name="parserLongName" value="yacyContentParser_${parserShortName}" />
|
||||
<property name="parserArchive" location="${release}/${parserLongName}_${parserVersion}.tgz" />
|
||||
|
||||
<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="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="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"/>
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user