You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by kbennett <kb...@bbsinc.biz> on 2007/09/12 18:46:22 UTC
Parser Class Packages
All -
I am trying to get the Tika unit tests to work. One of the issues is that
the packages of the fully qualified class names specified in config.xml are
different from the packages in which they are located on the source tree of
the code itself.
For example, the config.xml file contains:
<parser name="parse-pdf" class="liuslite.parser.pdf.PDFParser">
whereas the class itself is at:
src/main/java/org/apache/tika/parser/pdf/PDFParser.java
How should this be resolved? Should I edit the config.xml file to match the
code, or use an external jar file for these classes, or modify the source
code directory structure to match the "liuslite.parser.pdf" location
specified in the XML file?
- Keith
--
View this message in context: http://www.nabble.com/Parser-Class-Packages-tf4430639.html#a12639642
Sent from the Apache Tika - Development mailing list archive at Nabble.com.
Re: Parser Class Packages
Posted by Chris Mattmann <ch...@jpl.nasa.gov>.
+1
On 9/12/07 9:55 AM, "Rida Benjelloun" <ri...@doculibre.com> wrote:
> Hi Keith,
> Thanks for your comment. You have to modify the package name in the
> config.xml.
> <parser name="parse-pdf" class="org.apache.tika.parser.pdf.PDFParser">
>
> Regards.
>
> On 9/12/07, kbennett <kb...@bbsinc.biz> wrote:
>>
>>
>> All -
>>
>> I am trying to get the Tika unit tests to work. One of the issues is that
>> the packages of the fully qualified class names specified in config.xmlare
>> different from the packages in which they are located on the source tree
>> of
>> the code itself.
>>
>> For example, the config.xml file contains:
>>
>> <parser name="parse-pdf" class="liuslite.parser.pdf.PDFParser">
>>
>> whereas the class itself is at:
>>
>> src/main/java/org/apache/tika/parser/pdf/PDFParser.java
>>
>> How should this be resolved? Should I edit the config.xml file to match
>> the
>> code, or use an external jar file for these classes, or modify the source
>> code directory structure to match the "liuslite.parser.pdf" location
>> specified in the XML file?
>>
>> - Keith
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Parser-Class-Packages-tf4430639.html#a12639642
>> Sent from the Apache Tika - Development mailing list archive at Nabble.com
>> .
>>
>>
>
______________________________________________
Chris Mattmann, Ph.D.
Chris.Mattmann@jpl.nasa.gov
Key Staff Member
Modeling and Data Management Systems Section (387)
Data Management Systems and Technologies Group
_________________________________________________
Jet Propulsion Laboratory Pasadena, CA
Office: 171-266B Mailstop: 171-246
_______________________________________________________
Disclaimer: The opinions presented within are my own and do not reflect
those of either NASA, JPL, or the California Institute of Technology.
Re: Parser Class Packages
Posted by Rida Benjelloun <ri...@doculibre.com>.
Hi Keith,
Thanks for your comment. You have to modify the package name in the
config.xml.
<parser name="parse-pdf" class="org.apache.tika.parser.pdf.PDFParser">
Regards.
On 9/12/07, kbennett <kb...@bbsinc.biz> wrote:
>
>
> All -
>
> I am trying to get the Tika unit tests to work. One of the issues is that
> the packages of the fully qualified class names specified in config.xmlare
> different from the packages in which they are located on the source tree
> of
> the code itself.
>
> For example, the config.xml file contains:
>
> <parser name="parse-pdf" class="liuslite.parser.pdf.PDFParser">
>
> whereas the class itself is at:
>
> src/main/java/org/apache/tika/parser/pdf/PDFParser.java
>
> How should this be resolved? Should I edit the config.xml file to match
> the
> code, or use an external jar file for these classes, or modify the source
> code directory structure to match the "liuslite.parser.pdf" location
> specified in the XML file?
>
> - Keith
>
> --
> View this message in context:
> http://www.nabble.com/Parser-Class-Packages-tf4430639.html#a12639642
> Sent from the Apache Tika - Development mailing list archive at Nabble.com
> .
>
>
--
---------------------------------------------------------
Rida Benjelloun
Doculibre inc.
ridabenjelloun@apache.org
rida.benjelloun@doculibre.com
Cel: 418-262-3222
Tel: 418-353-3390
Site Web : http://www.doculibre.com
---------------------------------------------------------