Procházet zdrojové kódy

Stop using deprecated 'jspc' ant task and instead call jasper directly. Also rename webapp files to align with package name.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@376366 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting před 19 roky
rodič
revize
05c6226a0d

+ 9 - 7
build.xml

@@ -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}" 

+ 0 - 0
src/webapps/jobtracker/jobdetails.jsp → src/webapps/mapred/jobdetails.jsp


+ 0 - 0
src/webapps/jobtracker/jobtracker.jsp → src/webapps/mapred/jobtracker.jsp