You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Lewis John McGibbney (JIRA)" <ji...@apache.org> on 2014/06/12 16:01:26 UTC
[jira] [Created] (NUTCH-1792) Refactor resource loading in plugin
tests
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)