THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
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> <target name="jetty" description="Run Jetty with configuration set by the jetty.run property"> <java classname="org.mortbay.jetty.Server" dir="." fork="yes" failonerror="yes" > <classpath> <fileset dir="lib"> <include name="*.jar"/> </fileset> <fileset dir="lib/jetty-ext"> <include name="*.jar"/> </fileset> <pathelement path="${env.JAVA_HOME}/lib/tools.jar" /> </classpath> </java> </target> </project>
Run the setup
ant -f usejetty.xml setup
Run
ant -f usejetty.xml