Dear Wiki user, You have subscribed to a wiki page or wiki category on "Nutch Wiki" for change notification.
The following page has been changed by ShaileshKochhar: http://wiki.apache.org/nutch/WritingPluginExample The comment on the change is: Added details for ant to compile a plugin ------------------------------------------------------------------------------ <value>nutch-extensionpoints|protocol-http|urlfilter-regex|parse-(text|html)|index-basic|query-(basic|site|url)|recommended</value> }}} + == Getting Ant to Compile Your Plugin == + + In order for ant to compile and deploy your plugin you need to edit the src/plugin/build.xml file (NOT the build.xml in the root of your checkout directory). You'll see a number of lines that look like + {{{ + <ant dir="[plugin-name]" target="deploy" /> + }}} + + Edit this block to add a line for your plugin before the </target> tag. + + {{{ + <ant dir="reccomended" target="deploy" /> + }}} Running 'ant' in the root of your checkout directory should get everything compiled and jared up. The next time you run a crawl your parser and index filter should get used. You'll need to run 'ant war' to compile a new ROOT.war file. Once you've deployed that, your query filter should get used when searches are performed.
