Lewis John McGibbney created NUTCH-1792:
-------------------------------------------

             Summary: Refactor resource loading in plugin tests
                 Key: NUTCH-1792
                 URL: https://issues.apache.org/jira/browse/NUTCH-1792
             Project: Nutch
          Issue Type: Improvement
          Components: test
    Affects Versions: 2.2.1, 1.8
            Reporter: Lewis John McGibbney
            Assignee: Lewis John McGibbney
             Fix For: 2.3, 1.9


Right now we have a strange method for loading test resources e.g.

urlString = "file:" + sampleDir + fileSeparator + sampleFiles[i];
File file = new File(sampleDir + fileSeparator + sampleFiles[i]);

This works fine from the command line but fails to locate and load the resource 
within Eclipse IDE... not ideal.

I am investigating whether we can do getClass().getResource...



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to