Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Add another external dependency from PDFBox package ("Bouncy Castle"). This is necessary for parsing of some encrypted PDF files. bcprov-jdk14-132.jar is the binary jar as it is provided in the PDFBox-0.7.3 package (same as our FontBox, PDFBox packages).

fuchsi69521d92e5f7
diff --git a/.classpath b/.classpath
index 28dc340f6..2e42275b6 100644
--- a/.classpath
+++ b/.classpath
@@ -38,5 +38,6 @@
<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="lib" path="libx/bcprov-jdk14-132.jar"/>
<classpathentry kind="output" path="gen"/>
</classpath>
diff --git a/libx/bcprov-jdk14-132.jar b/libx/bcprov-jdk14-132.jar
new file mode 100644
index 000000000..552721d0e
Binary files /dev/null and b/libx/bcprov-jdk14-132.jar differ
diff --git a/libx/bcprov.License b/libx/bcprov.License
new file mode 100644
index 000000000..b009e4e6d
--- /dev/null
+++ b/libx/bcprov.License
@@ -0,0 +1,19 @@
+Copyright (c) 2000 - 2006 The Legion Of The Bouncy Castle
+(http://www.bouncycastle.org)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/source/de/anomic/plasma/parser/pdf/build.xml b/source/de/anomic/plasma/parser/pdf/build.xml
index 6236be25c..dde665f85 100644
--- a/source/de/anomic/plasma/parser/pdf/build.xml
+++ b/source/de/anomic/plasma/parser/pdf/build.xml
@@ -18,6 +18,7 @@
<pathelement location="${libx}/PDFBox-0.7.3.jar" />
<!-- additional fontparsing lib, part of PDFBox -->
<pathelement location="${libx}/FontBox-0.1.0-dev.jar" />
+ <pathelement location="${libx}/bcprov-jdk14-132.jar" />
</classpath>
</javac>
</target>
@@ -26,6 +27,7 @@
<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="${libx}" includes="bcprov*" 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>
@@ -33,7 +35,7 @@
<target name="copy" depends="compile">
<copy todir="${release}/libx/">
- <fileset dir="${libx}" includes="PDFBox-0.7.3.*,FontBox*" />
+ <fileset dir="${libx}" includes="PDFBox-0.7.3.*,FontBox*,bcprov*" />
</copy>
<copy todir="${release}/source/de/anomic/plasma/parser/${parserShortName}">
<fileset dir="${src}/de/anomic/plasma/parser/${parserShortName}" includes="**/*" />
diff --git a/source/de/anomic/plasma/parser/pdf/pdfParser.java b/source/de/anomic/plasma/parser/pdf/pdfParser.java
index c32c7011e..3609f98c0 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", "FontBox-0.1.0-dev.jar"
+ "PDFBox-0.7.3.jar", "FontBox-0.1.0-dev.jar", "bcprov-jdk14-132.jar"
};
public pdfParser() {