Browse Source

two new tests

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271794 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 23 years ago
parent
commit
3e35ab334b
3 changed files with 45 additions and 5 deletions
  1. +9
    -0
      src/etc/testcases/taskdefs/optional/jsp/1nvalid-classname.jsp
  2. +9
    -0
      src/etc/testcases/taskdefs/optional/jsp/default.jsp
  3. +27
    -5
      src/etc/testcases/taskdefs/optional/jspc.xml

+ 9
- 0
src/etc/testcases/taskdefs/optional/jsp/1nvalid-classname.jsp View File

@@ -0,0 +1,9 @@
<%@ page language="java" %>
<html>
<head/>
<body>

my name is <%= this.getClass().getName() %>

</body>
</html>

+ 9
- 0
src/etc/testcases/taskdefs/optional/jsp/default.jsp View File

@@ -0,0 +1,9 @@
<%@ page language="java" %>
<html>
<head/>
<body>

It is now <%= System.currentTimeMillis() %>

</body>
</html>

+ 27
- 5
src/etc/testcases/taskdefs/optional/jspc.xml View File

@@ -2,7 +2,7 @@

<project name="jspc-test" default="main" basedir=".">

<target name="main" depends="simple,missing_tld,uriroot,xml">
<target name="main" depends="testSimple">
</target>

<target name="init">
@@ -19,7 +19,7 @@
<!-- this should fail -->
<!-- it should not create an output file, but it does, which needs
cleanup -->
<target name="missing_tld" depends="init">
<target name="testNoTld" depends="init">
<jspc
destdir="${jsp.output.dir}"
srcdir="${jsp.dir}"
@@ -30,7 +30,7 @@
</target>

<!-- this should compile to simple.java -->
<target name="simple" depends="init">
<target name="testSimple" depends="init">
<jspc
destdir="${jsp.output.dir}"
srcdir="${jsp.dir}"
@@ -41,7 +41,7 @@
</target>

<!-- this should compile to uriroot.java -->
<target name="uriroot" depends="init">
<target name="testUriroot" depends="init">
<jspc
destdir="${jsp.output.dir}"
uriroot="${jsp.dir}"
@@ -53,7 +53,7 @@
</target>
<!-- this should compile an xml format jsp page to xml.java -->
<target name="xml" depends="init">
<target name="testXml" depends="init">
<jspc
destdir="${jsp.output.dir}"
uriroot="${jsp.dir}"
@@ -63,4 +63,26 @@
</jspc>
</target>
<!-- this should compile default.jsp to mangled(%default).java -->
<target name="testKeyword" depends="init">
<jspc
destdir="${jsp.output.dir}"
srcdir="${jsp.dir}"
verbose="${jsp.verbosity}">
<include
name="default.jsp"/>
</jspc>
</target>
<!-- this should compile default.jsp to mangled(%default).java -->
<target name="testInvalidClassname" depends="init">
<jspc
destdir="${jsp.output.dir}"
srcdir="${jsp.dir}"
verbose="${jsp.verbosity}">
<include
name="1nvalid-classname.jsp"/>
</jspc>
</target>
</project>

Loading…
Cancel
Save