You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by Hong-Thai Nguyen <Ho...@polyspot.com> on 2014/03/06 12:41:12 UTC
Using guava on tika ?
Hi all,
Guava (https://code.google.com/p/guava-libraries/) provides many facilities on text, file, collection ... manipuation. Should we use in Tika ?
Hong-Thai
RE: Using guava on tika ?
Posted by Hong-Thai Nguyen <Ho...@polyspot.com>.
Thank for feedback.
Nothing we can't do with our code :) Guava is just 'facilities' make code more clear, shorter and sometime faster.
I agree that this integration brings more dependencies, may create conflicts in end-users applications. Leave as it for now.
Cheers,
Hong-Thai
-----Message d'origine-----
De : Jukka Zitting [mailto:jukka.zitting@gmail.com]
Envoyé : jeudi 6 mars 2014 16:47
À : Tika Development
Objet : Re: Using guava on tika ?
Hi,
On Thu, Mar 6, 2014 at 6:54 AM, Nick Burch <ap...@gagravarr.org> wrote:
> On Thu, 6 Mar 2014, Hong-Thai Nguyen wrote:
>> Guava (https://code.google.com/p/guava-libraries/) provides many
>> facilities on text, file, collection ... manipuation. Should we use in Tika?
>
> Can you give an example of where using Guava would either simplify
> some existing code, or improve its effectiveness, or permit something
> we couldn't otherwise do?
Also, especially in tika-core we've explicitly avoided any external dependencies to keep it as simple and easy as possible to include as a dependency in client applications. We've even gone as far as including copies of some Commons IO classes in org.apache.tika.io instead of referring to commons-io as a dependency.
BR,
Jukka Zitting
Re: Using guava on tika ?
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On Thu, Mar 6, 2014 at 6:54 AM, Nick Burch <ap...@gagravarr.org> wrote:
> On Thu, 6 Mar 2014, Hong-Thai Nguyen wrote:
>> Guava (https://code.google.com/p/guava-libraries/) provides many
>> facilities on text, file, collection ... manipuation. Should we use in Tika?
>
> Can you give an example of where using Guava would either simplify some
> existing code, or improve its effectiveness, or permit something we couldn't
> otherwise do?
Also, especially in tika-core we've explicitly avoided any external
dependencies to keep it as simple and easy as possible to include as a
dependency in client applications. We've even gone as far as including
copies of some Commons IO classes in org.apache.tika.io instead of
referring to commons-io as a dependency.
BR,
Jukka Zitting
Re: Using guava on tika ?
Posted by Konstantin Gribov <gr...@gmail.com>.
If you will bring it as a dependency -- don't use guava 15, use guava 16.
It breaks CDI in major appservers (jboss as 7, glassfish 3, websphere) with
incorrect beans.xml.
See https://issues.jboss.org/browse/WELD-1007 and
https://code.google.com/p/guava-libraries/issues/detail?id=1527.
--
Best regards,
Konstantin Gribov.
2014-03-06 15:54 GMT+04:00 Nick Burch <ap...@gagravarr.org>:
> On Thu, 6 Mar 2014, Hong-Thai Nguyen wrote:
>
>> Guava (https://code.google.com/p/guava-libraries/) provides many
>> facilities on text, file, collection ... manipuation. Should we use in Tika
>> ?
>>
>
> Can you give an example of where using Guava would either simplify some
> existing code, or improve its effectiveness, or permit something we
> couldn't otherwise do?
>
> Nick
>
Re: Using guava on tika ?
Posted by Nick Burch <ap...@gagravarr.org>.
On Thu, 6 Mar 2014, Hong-Thai Nguyen wrote:
> Guava (https://code.google.com/p/guava-libraries/) provides many
> facilities on text, file, collection ... manipuation. Should we use in
> Tika ?
Can you give an example of where using Guava would either simplify some
existing code, or improve its effectiveness, or permit something we
couldn't otherwise do?
Nick