ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: jakarta-ant/src/etc/testcases/taskdefs/optional/jsp/WEB-INF web.xml
Date Fri, 09 Nov 2001 00:56:29 GMT
stevel      01/11/08 16:56:29

  Added:       src/etc/testcases/taskdefs/optional jspc.xml
               src/etc/testcases/taskdefs/optional/jsp missing_tld.jsp
                        simple.jsp uriroot.jsp
               src/etc/testcases/taskdefs/optional/jsp/WEB-INF web.xml
  Log:
  jsp testcases; not yet with matching junit tests
  
  Revision  Changes    Path
  1.1                  jakarta-ant/src/etc/testcases/taskdefs/optional/jspc.xml
  
  Index: jspc.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="jspc-test" default="main" basedir=".">
  
     <target name="main" depends="simple,missing_tld">
  
     </target>
  
  	<target name="init">
  		<property name="jsp.dir" location="jsp"/>
  		<property name="jsp.output.dir" location="${jsp.dir}/java"/>
  		<property name="jsp.verbosity" value="3"/>
  		
  		<mkdir dir="${jsp.output.dir}"/>
  	</target>
  	
  	<target name="cleanup">
  		<delete dir="${jsp.output.dir}"/>   
  	</target>
     
     <!-- this should fail -->
     <target name="missing_tld" depends="init">
  		<jspc
  		   destdir="${jsp.output.dir}"
  		   srcdir="${jsp.dir}"
  		   verbose="${jsp.verbosity}">
  			<include
                 name="missing_tld.jsp"/>
  		</jspc>
     </target>
  
     <!-- this should compile to simple.java -->
     <target name="simple" depends="init">
  		<jspc
  		   destdir="${jsp.output.dir}"
  		   srcdir="${jsp.dir}"
  		   verbose="${jsp.verbosity}">
  			<include
                 name="simple.jsp"/>
  		</jspc>
     </target>   
  
     <!-- this should also compile to simple.java -->
     <target name="uriroot" depends="init">
  		<jspc
  		   destdir="${jsp.output.dir}"
  		   uriroot="${jsp.dir}"
  		   srcdir="${jsp.dir}"
  		   verbose="${jsp.verbosity}">
  			<include
                 name="uriroot.jsp"/>
  		</jspc>
     </target>   
  </project>
  
  
  
  1.1                  jakarta-ant/src/etc/testcases/taskdefs/optional/jsp/missing_tld.jsp
  
  Index: missing_tld.jsp
  ===================================================================
  <%@ page language="java" %>
  <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
  <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
  <%@ taglib uri="/WEB-INF/tlds/struts-template.tld" prefix="template" %>
  <html:html locale="true">
  <head>
  <title>shouldnt compile</title>
  <html:base/>
  </head>
  <body>
  
  This page should not compile because refers to TLDs that arent around.
  
  </body>
  
  </html:html>
  
  
  
  1.1                  jakarta-ant/src/etc/testcases/taskdefs/optional/jsp/simple.jsp
  
  Index: simple.jsp
  ===================================================================
  <%@ page language="java" %>
  <html>
  <head/>
  <body>
  
  It is now <%= System.currentTimeMillis() %>
  
  </body>
  </html>
  
  
  
  1.1                  jakarta-ant/src/etc/testcases/taskdefs/optional/jsp/uriroot.jsp
  
  Index: uriroot.jsp
  ===================================================================
  <%@ page language="java" %>
  <html>
  <head/>
  <body>
  
  It is now <%= System.currentTimeMillis() %>
  
  </body>
  </html>
  
  
  
  1.1                  jakarta-ant/src/etc/testcases/taskdefs/optional/jsp/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
  <web-app/>
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message