You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Dmitry Lihachev (JIRA)" <ji...@apache.org> on 2009/02/18 06:41:01 UTC

[jira] Issue Comment Edited: (NUTCH-691) Update jakarta poi jars to the most relevant version

    [ https://issues.apache.org/jira/browse/NUTCH-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674468#action_12674468 ] 

dmitry.lihachev edited comment on NUTCH-691 at 2/17/09 9:39 PM:
----------------------------------------------------------------

Steps to reproduce NUTCH-591 (you must have trunk version of nutch in the nutch dir)

{code}
cd nutch
wget https://issues.apache.org/jira/secure/attachment/12400380/NUTCH-691-v1-test.patch
patch -p0 < NUTCH-691-v1-test.patch
rm NUTCH-691-v1-test.patch
wget https://issues.apache.org/bugzilla/attachment.cgi?id=19200 \
     -O src/plugin/parse-msword/sample/bugzilla_bug_41076_att_19200.doc
wget https://issues.apache.org/bugzilla/attachment.cgi?id=22957 \
     -O src/plugin/parse-msword/sample/bugzilla_bug_41076_att_22957.doc
ant clean compile-core
cd src/plugin/parse-msword/; ant clean test; cd ../../..
{code}

With new version of jakarta poi this test passes.
Steps to upgrade jakarta poi to 3.5 beta 4.

1. download new version of POI and update jars in src/plugin/lib-jakarta-poi
{code}
wget http://www.sai.msu.su/apache/poi/dev/bin/poi-bin-3.5-beta4-20081128.tar.gz
tar -xzf poi-bin-3.5-beta4-20081128.tar.gz
cp poi-3.5-beta4/poi{,-scratchpad}-3.5-beta4-20081128.jar src/plugin/lib-jakarta-poi/lib/
rm src/plugin/lib-jakarta-poi/lib/poi{,-scratchpad}-3.0-alpha1-20050704.jar
# cleanup downloaded stuff
rm poi-bin-3.5-beta4-20081128.tar.gz
rm -r poi-3.5-beta4
{code}

2. API has changed in new version of POI so we need some patching [^NUTCH-691-v1-poi.patch]
{code}
wget https://issues.apache.org/jira/secure/attachment/12400378/NUTCH-691-v1-poi.patch
patch -p0 < NUTCH-691-v1-poi.patch
rm NUTCH-691-v1-poi.patch
{code}

3. Ensure that *.doc files are read properly.
{code}
cd src/plugin/lib-jakarta-poi/; ant clean; cd ../../..
cd src/plugin/parse-msword/; ant clean test; cd ../../..
{code}

      was (Author: dmitry.lihachev):
    Steps to reproduce NUTCH-591 (you must have trunk version of nutch in the nutch dir)

{code}
cd nutch
wget https://issues.apache.org/jira/secure/attachment/12400380/NUTCH-691-v1-test.patch
patch -p0 < NUTCH-691-v1-test.patch
rm NUTCH-691-v1-test.patch
wget https://issues.apache.org/bugzilla/attachment.cgi?id=19200 \
     -O src/plugin/parse-msword/sample/bugzilla_bug_41076_att_19200.doc
wget https://issues.apache.org/bugzilla/attachment.cgi?id=22957 \
     -O src/plugin/parse-msword/sample/bugzilla_bug_41076_att_22957.doc
ant clean compile-core
cd src/plugin/parse-msword/; ant clean test; cd ../../..
{code}

With new version of jakarta poi this test pass.
Steps to upgrade jakarta poi to 3.5 beta 4.

1. download new version of POI and update jars in src/plugin/lib-jakarta-poi
{code}
wget http://www.sai.msu.su/apache/poi/dev/bin/poi-bin-3.5-beta4-20081128.tar.gz
tar -xzf poi-bin-3.5-beta4-20081128.tar.gz
cp poi-3.5-beta4/poi{,-scratchpad}-3.5-beta4-20081128.jar src/plugin/lib-jakarta-poi/lib/
rm src/plugin/lib-jakarta-poi/lib/poi{,-scratchpad}-3.0-alpha1-20050704.jar
# cleanup downloaded stuff
rm poi-bin-3.5-beta4-20081128.tar.gz
rm -r poi-3.5-beta4
{code}

2. as of new version POI provides changed API you must apply patch [^NUTCH-691-v1-poi.patch]
{code}
wget https://issues.apache.org/jira/secure/attachment/12400378/NUTCH-691-v1-poi.patch
patch -p0 < NUTCH-691-v1-poi.patch
rm NUTCH-691-v1-poi.patch
{code}

3. Test that all docs are correctly readed.
{code}
cd src/plugin/lib-jakarta-poi/; ant clean; cd ../../..
cd src/plugin/parse-msword/; ant clean test; cd ../../..
{code}
  
> Update jakarta poi jars to the most relevant version
> ----------------------------------------------------
>
>                 Key: NUTCH-691
>                 URL: https://issues.apache.org/jira/browse/NUTCH-691
>             Project: Nutch
>          Issue Type: Improvement
>          Components: fetcher
>    Affects Versions: 1.0.0
>            Reporter: Dmitry Lihachev
>         Attachments: NUTCH-691-v1-poi.patch, NUTCH-691-v1-test.patch
>
>
> Update  jakarta poi jars to the most relevant version closes bug NUTCH-591.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.