DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
Note: this page is
This page is a quick HOWTO explaining how to easily contribute patches to Nutch. It assumes you are using some form of Unix.
...
- All public classes and methods should have informative javadocJavadoc.
- Unit tests are encouraged (http://www.junit.orgJUnit).
Building a patch
First of all, please perform some minimal non-regression tests by:
- rebuilding the whole entire Nutch code
- executing the whole entire unit tests.
Building Nutch
...
run unit tests from a single core test class (use class name without package path):
No Format ant test-core -Dtestcase=TestMimeUtil
run unit tests for a specific plugin:
No Format ant test-plugin -Dplugin=protocol-okhttp
or exclude test files by patterns:
No Format ant -Dtest.exclude='TestCrawlDb*.java **/TestNutchServer*' test
See also bin/nutch junit and WritingPluginExample-1.2#Unit_testing.
...
If you are perfectionist you can also perform some functional tests by running a small crawl using Nutch. Please refer to the NutchTutorial
...
- try to reproduce the problem. If you're not able to reproduce a problem, it's impossible to test whether a patch really resolves it.
- try to get a clear understanding of the problem
- have a look at the patch file: Ideally, you'll get and understanding about the solution proposed by the patch (no problem if not)
- apply the patch, see below #Applying_patches
- build Nutch and test whether the problem disappeared
- does the patch break other things (add regressions)?
...