Differences between revisions 6 and 7
Revision 6 as of 2006-04-23 11:54:57
Size: 1189
Editor: 134
Revision 7 as of 2009-09-20 23:10:09
Size: 1189
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

All the commands are assume to be under the nutch_home Create a ant file called userjetty.xml wich this content:

<project name="Nutch" default="jetty">
   <property environment="env" />
  <target name="setup">
    <mkdir dir="etc"/>
    <get src="ftp://jetty.mortbay.org/pub/jetty-5.1.4/etc/jetty.xml" dest="etc/jetty.xml"/>
    <get src="ftp://jetty.mortbay.org/pub/jetty-5.1.4/etc/webdefault.xml" dest="etc/webdefault.xml"/>
    <copy file="build/nutch-0.8-dev.war" tofile="webapps/root.war"/>
    <mkdir dir="logs"/>
  <target name="jetty"
   description="Run Jetty with configuration set by the jetty.run property">
    <java classname="org.mortbay.jetty.Server"
      <fileset dir="lib">
        <include name="*.jar"/>
      <fileset dir="lib/jetty-ext">
        <include name="*.jar"/>
         <pathelement path="${env.JAVA_HOME}/lib/tools.jar" />

Run the setup

ant -f usejetty.xml setup


ant -f usejetty.xml

GettingNutchRunningWithJetty (last edited 2009-09-20 23:10:09 by localhost)