source: release-kits/lirk3/resources/gs3-release-maker/apache-ant-1.6.5/src/etc/testcases/taskdefs/optional/jspc.xml@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 3.4 KB
Line 
1<?xml version="1.0"?>
2
3<project name="jspc-test" default="main" basedir=".">
4
5 <target name="main" depends="testSimple">
6 </target>
7
8 <target name="init">
9 <property name="jsp.dir" location="jsp"/>
10 <property name="jsp.output.dir" location="${jsp.dir}/java"/>
11 <property name="jsp.verbosity" value="3"/>
12 <property name="jsp.compiler" value="jasper41"/>
13 <mkdir dir="${jsp.output.dir}"/>
14 </target>
15
16 <target name="cleanup">
17 <delete dir="${jsp.output.dir}"/>
18 </target>
19
20 <!-- this should fail -->
21 <!-- it should not create an output file, but it does, which needs
22 cleanup -->
23 <target name="testNoTld" depends="init">
24 <jspc
25 destdir="${jsp.output.dir}"
26 srcdir="${jsp.dir}"
27 compiler="${jsp.compiler}"
28 verbose="${jsp.verbosity}">
29 <include
30 name="missing_tld.jsp"/>
31 </jspc>
32 </target>
33
34 <!-- this should compile to simple.java -->
35 <!-- also, stick to the default compiler here to ensure it still works-->
36 <target name="testSimple" depends="init">
37 <jspc
38 destdir="${jsp.output.dir}"
39 srcdir="${jsp.dir}"
40 verbose="${jsp.verbosity}">
41 <include
42 name="simple.jsp"/>
43 </jspc>
44 </target>
45
46 <!-- this should compile to uriroot.java -->
47 <target name="testUriroot" depends="init">
48 <jspc
49 destdir="${jsp.output.dir}"
50 uriroot="${jsp.dir}"
51 srcdir="${jsp.dir}"
52 compiler="${jsp.compiler}"
53 verbose="${jsp.verbosity}">
54 <include
55 name="uriroot.jsp"/>
56 </jspc>
57 </target>
58
59 <!-- this should compile an xml format jsp page to xml.java -->
60 <target name="testXml" depends="init">
61 <jspc
62 destdir="${jsp.output.dir}"
63 uriroot="${jsp.dir}"
64 srcdir="${jsp.dir}"
65 compiler="${jsp.compiler}"
66 verbose="${jsp.verbosity}">
67 <include name="xml.jsp"/>
68 </jspc>
69 </target>
70
71 <!-- this should compile default.jsp to mangled(%default).java -->
72 <target name="testKeyword" depends="init">
73 <jspc
74 destdir="${jsp.output.dir}"
75 srcdir="${jsp.dir}"
76 compiler="${jsp.compiler}"
77 verbose="${jsp.verbosity}">
78 <include
79 name="default.jsp"/>
80 </jspc>
81 </target>
82
83 <!-- this should compile default.jsp to mangled(%default).java -->
84 <target name="testInvalidClassname" depends="init">
85 <jspc
86 destdir="${jsp.output.dir}"
87 srcdir="${jsp.dir}"
88 compiler="${jsp.compiler}"
89 verbose="${jsp.verbosity}">
90 <include
91 name="1nvalid-classname.jsp"/>
92 </jspc>
93 </target>
94
95 <!-- non jsp pages should be ignored -->
96 <target name="testNotAJspFile" depends="init">
97 <jspc
98 destdir="${jsp.output.dir}"
99 srcdir="${jsp.dir}"
100 compiler="${jsp.compiler}"
101 verbose="${jsp.verbosity}">
102 <include
103 name="wrong_type.txt"/>
104 </jspc>
105 </target>
106
107 <!-- test for webapp compilation -->
108 <target name="testWebapp" depends="init">
109 <jspc
110 destdir="${jsp.output.dir}"
111 compiler="${jsp.compiler}"
112 verbose="${jsp.verbosity}">
113 <webapp basedir="${jsp.dir}" />
114 </jspc>
115 </target>
116
117</project>
Note: See TracBrowser for help on using the repository browser.