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 JakeVanderdray:
http://wiki.apache.org/nutch/WritingPlugins

------------------------------------------------------------------------------
   * Your plugin as a jar file.
   * Jar files of any packages your plugin needs.
   * A plugin.xml file that tells nutch about your plugin.
+ 
+ == The Anatomy of a Plugin.xml File ==
+ 
+ Your plugin.xml file should look something like this:
+ 
+ {{{
+ <?xml version="1.0" encoding="UTF-8"?>
+ <plugin
+    id="parse-custom"
+    name="Custom Parse Plug-in"
+    version="0.0.0"
+    provider-name="nutch.org">
+ 
+    <runtime>
+       <library name="parse-custom.jar">
+          <export name="*"/>
+       </library>
+       <library name="nekohtml-0.9.4.jar"/>
+       <library name="tagsoup-1.0rc3.jar"/>
+    </runtime>
+ 
+    <extension id="org.apache.nutch.parse.custom"
+               name="CustomParse"
+               point="org.apache.nutch.parse.Parser">
+ 
+       <implementation id="org.apache.nutch.parse.custom.CustomParser"
+                       class="org.apache.nutch.parse.custom.CustomParser"
+                       contentType="text/html"
+                       pathSuffix=""/>
+ 
+    </extension>
+ 
+ </plugin>
+ }}}
  
  == Getting Nutch to Use Your Plugin ==
  

Reply via email to