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

Refactor resource loading in plugin tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8, 2.2.1
    • None
    • test
    • 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

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

            Dates

              Created:
              Updated: