Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-1792

Refactor resource loading in plugin tests

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8, 2.2.1
    • Fix Version/s: None
    • Component/s: test
    • Labels:
      None

      Description

      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...

        Attachments

          Activity

            People

            • Assignee:
              lewismc Lewis John McGibbney
              Reporter:
              lewismc Lewis John McGibbney
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: