When I use the latest build.xml, the jasper task doesn't run. Is there a missing library that should be available to make this work for ant? I'm using a debian-installed ant, with the ant-optional package also installed. After a default "ant" build, there are no jsps in build/webapps. The "compile:" ant job doesn't mention a jsp-compile task, either, all of the lines of output are prefixed with "[javac]". Hitting jobtrackerhost:port/ gives an index, hitting /jobtracker.jsp gives a 404. Hitting /jobtracker/jobtracker.jsp gives a bunch of compile errors, unless I make all of the Job* classes that are used public (ie, this is certainly not running the precompiled jsps as servlets).
On 2/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Author: cutting > Date: Thu Feb 9 10:06:02 2006 > New Revision: 376366 > > URL: http://svn.apache.org/viewcvs?rev=376366&view=rev > Log: > Stop using deprecated 'jspc' ant task and instead call jasper > directly. Also rename webapp files to align with package name. > > Added: > lucene/hadoop/trunk/src/webapps/mapred/ > - copied from r376085, lucene/hadoop/trunk/src/webapps/jobtracker/ > Removed: > lucene/hadoop/trunk/src/webapps/jobtracker/ > Modified: > lucene/hadoop/trunk/build.xml > > Modified: lucene/hadoop/trunk/build.xml > URL: > http://svn.apache.org/viewcvs/lucene/hadoop/trunk/build.xml?rev=376366&r1=376365&r2=376366&view=diff > > ============================================================================== > --- lucene/hadoop/trunk/build.xml (original) > +++ lucene/hadoop/trunk/build.xml Thu Feb 9 10:06:02 2006 > @@ -96,16 +96,18 @@ > <!-- ====================================================== --> > <!-- Compile the Java files --> > <!-- ====================================================== --> > + <taskdef classname="org.apache.jasper.JspC" name="jsp-compile" > > + <classpath refid="classpath"/> > + </taskdef> > + > <target name="compile" depends="init"> > - <jspc > - srcdir="${src.webapps}" > - includes="**/*.jsp" > - destdir="${build.src}" > + > + <jsp-compile > + uriroot="${src.webapps}/mapred" > + outputdir="${build.src}" > package="org.apache.hadoop.mapred" > - uriroot="${src.webapps}/jobtracker" > webxml="${build.webapps}/WEB-INF/web.xml"> > - <classpath refid="classpath"/> > - </jspc> > + </jsp-compile> > > <javac > encoding="${build.encoding}" > > > -- Bryan A. Pendleton Ph: (877) geek-1-bp
