1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
2 | <!--NewPage-->
|
---|
3 | <HTML>
|
---|
4 | <HEAD>
|
---|
5 | <!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:28 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | XMLResultAggregator (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator class">
|
---|
11 |
|
---|
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../stylesheet.css" TITLE="Style">
|
---|
13 |
|
---|
14 | <SCRIPT type="text/javascript">
|
---|
15 | function windowTitle()
|
---|
16 | {
|
---|
17 | parent.document.title="XMLResultAggregator (Apache Ant API)";
|
---|
18 | }
|
---|
19 | </SCRIPT>
|
---|
20 |
|
---|
21 | </HEAD>
|
---|
22 |
|
---|
23 | <BODY BGCOLOR="white" onload="windowTitle();">
|
---|
24 |
|
---|
25 |
|
---|
26 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
27 | <A NAME="navbar_top"><!-- --></A>
|
---|
28 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
---|
29 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
30 | <TR>
|
---|
31 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
32 | <A NAME="navbar_top_firstrow"><!-- --></A>
|
---|
33 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
34 | <TR ALIGN="center" VALIGN="top">
|
---|
35 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
42 | </TR>
|
---|
43 | </TABLE>
|
---|
44 | </TD>
|
---|
45 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
46 | </EM>
|
---|
47 | </TD>
|
---|
48 | </TR>
|
---|
49 |
|
---|
50 | <TR>
|
---|
51 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
52 | <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><B>PREV CLASS</B></A>
|
---|
53 | NEXT CLASS</FONT></TD>
|
---|
54 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
55 | <A HREF="../../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
56 | <A HREF="XMLResultAggregator.html" target="_top"><B>NO FRAMES</B></A>
|
---|
57 | <SCRIPT type="text/javascript">
|
---|
58 | <!--
|
---|
59 | if(window==top) {
|
---|
60 | document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
61 | }
|
---|
62 | //-->
|
---|
63 | </SCRIPT>
|
---|
64 | <NOSCRIPT>
|
---|
65 | <A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
66 | </NOSCRIPT>
|
---|
67 |
|
---|
68 | </FONT></TD>
|
---|
69 | </TR>
|
---|
70 | <TR>
|
---|
71 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
72 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
75 | </TR>
|
---|
76 | </TABLE>
|
---|
77 | <A NAME="skip-navbar_top"></A>
|
---|
78 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
79 |
|
---|
80 | <HR>
|
---|
81 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
82 | <H2>
|
---|
83 | <FONT SIZE="-1">
|
---|
84 | org.apache.tools.ant.taskdefs.optional.junit</FONT>
|
---|
85 | <BR>
|
---|
86 | Class XMLResultAggregator</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">org.apache.tools.ant.ProjectComponent</A>
|
---|
90 | <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">org.apache.tools.ant.Task</A>
|
---|
91 | <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator</B>
|
---|
92 | </PRE>
|
---|
93 | <DL>
|
---|
94 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html" title="interface in org.apache.tools.ant.taskdefs.optional.junit">XMLConstants</A></DD>
|
---|
95 | </DL>
|
---|
96 | <HR>
|
---|
97 | <DL>
|
---|
98 | <DT>public class <B>XMLResultAggregator</B><DT>extends <A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A><DT>implements <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html" title="interface in org.apache.tools.ant.taskdefs.optional.junit">XMLConstants</A></DL>
|
---|
99 |
|
---|
100 | <P>
|
---|
101 | Aggregates all <junit> XML formatter testsuite data under
|
---|
102 | a specific directory and transforms the results via XSLT.
|
---|
103 | It is not particulary clean but
|
---|
104 | should be helpful while I am thinking about another technique.
|
---|
105 |
|
---|
106 | <p> The main problem is due to the fact that a JVM can be forked for a testcase
|
---|
107 | thus making it impossible to aggregate all testcases since the listener is
|
---|
108 | (obviously) in the forked JVM. A solution could be to write a
|
---|
109 | TestListener that will receive events from the TestRunner via sockets. This
|
---|
110 | is IMHO the simplest way to do it to avoid this file hacking thing.
|
---|
111 | <P>
|
---|
112 |
|
---|
113 | <P>
|
---|
114 | <HR>
|
---|
115 |
|
---|
116 | <P>
|
---|
117 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
118 |
|
---|
119 |
|
---|
120 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
121 |
|
---|
122 | <A NAME="field_summary"><!-- --></A>
|
---|
123 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
124 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
125 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
126 | <B>Field Summary</B></FONT></TD>
|
---|
127 | </TR>
|
---|
128 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
129 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
130 | <CODE>static java.lang.String</CODE></FONT></TD>
|
---|
131 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#DEFAULT_DIR">DEFAULT_DIR</A></B></CODE>
|
---|
132 |
|
---|
133 | <BR>
|
---|
134 | The default directory: <tt>.</tt>.</TD>
|
---|
135 | </TR>
|
---|
136 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
137 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
138 | <CODE>static java.lang.String</CODE></FONT></TD>
|
---|
139 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#DEFAULT_FILENAME">DEFAULT_FILENAME</A></B></CODE>
|
---|
140 |
|
---|
141 | <BR>
|
---|
142 | the default file name: <tt>TESTS-TestSuites.xml</tt></TD>
|
---|
143 | </TR>
|
---|
144 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
145 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
146 | <CODE>protected java.util.Vector</CODE></FONT></TD>
|
---|
147 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#filesets">filesets</A></B></CODE>
|
---|
148 |
|
---|
149 | <BR>
|
---|
150 | the list of all filesets, that should contains the xml to aggregate</TD>
|
---|
151 | </TR>
|
---|
152 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
153 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
154 | <CODE>protected int</CODE></FONT></TD>
|
---|
155 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#generatedId">generatedId</A></B></CODE>
|
---|
156 |
|
---|
157 | <BR>
|
---|
158 | the current generated id</TD>
|
---|
159 | </TR>
|
---|
160 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
161 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
162 | <CODE>protected java.io.File</CODE></FONT></TD>
|
---|
163 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#toDir">toDir</A></B></CODE>
|
---|
164 |
|
---|
165 | <BR>
|
---|
166 | the directory to write the file to</TD>
|
---|
167 | </TR>
|
---|
168 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
169 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
170 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
171 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#toFile">toFile</A></B></CODE>
|
---|
172 |
|
---|
173 | <BR>
|
---|
174 | the name of the result file</TD>
|
---|
175 | </TR>
|
---|
176 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
177 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
178 | <CODE>protected java.util.Vector</CODE></FONT></TD>
|
---|
179 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#transformers">transformers</A></B></CODE>
|
---|
180 |
|
---|
181 | <BR>
|
---|
182 | </TD>
|
---|
183 | </TR>
|
---|
184 | </TABLE>
|
---|
185 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
186 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
187 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
188 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
|
---|
189 | </TR>
|
---|
190 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
191 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/Task.html#description">description</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#location">location</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#target">target</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#taskName">taskName</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#taskType">taskType</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#wrapper">wrapper</A></CODE></TD>
|
---|
192 | </TR>
|
---|
193 | </TABLE>
|
---|
194 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
195 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
196 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
197 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
198 | </TR>
|
---|
199 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
200 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html#project">project</A></CODE></TD>
|
---|
201 | </TR>
|
---|
202 | </TABLE>
|
---|
203 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.taskdefs.optional.junit.XMLConstants"><!-- --></A>
|
---|
204 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
205 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
206 | <TD><B>Fields inherited from interface org.apache.tools.ant.taskdefs.optional.junit.<A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html" title="interface in org.apache.tools.ant.taskdefs.optional.junit">XMLConstants</A></B></TD>
|
---|
207 | </TR>
|
---|
208 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
209 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#ATTR_CLASSNAME">ATTR_CLASSNAME</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#ATTR_ERRORS">ATTR_ERRORS</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#ATTR_FAILURES">ATTR_FAILURES</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#ATTR_ID">ATTR_ID</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#ATTR_MESSAGE">ATTR_MESSAGE</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#ATTR_NAME">ATTR_NAME</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#ATTR_PACKAGE">ATTR_PACKAGE</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#ATTR_TESTS">ATTR_TESTS</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#ATTR_TIME">ATTR_TIME</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#ATTR_TYPE">ATTR_TYPE</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#ATTR_VALUE">ATTR_VALUE</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#ERROR">ERROR</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#FAILURE">FAILURE</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#PROPERTIES">PROPERTIES</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#PROPERTY">PROPERTY</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#SYSTEM_ERR">SYSTEM_ERR</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#SYSTEM_OUT">SYSTEM_OUT</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#TESTCASE">TESTCASE</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#TESTSUITE">TESTSUITE</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.html#TESTSUITES">TESTSUITES</A></CODE></TD>
|
---|
210 | </TR>
|
---|
211 | </TABLE>
|
---|
212 |
|
---|
213 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
214 |
|
---|
215 | <A NAME="constructor_summary"><!-- --></A>
|
---|
216 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
217 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
218 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
219 | <B>Constructor Summary</B></FONT></TD>
|
---|
220 | </TR>
|
---|
221 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
222 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#XMLResultAggregator()">XMLResultAggregator</A></B>()</CODE>
|
---|
223 |
|
---|
224 | <BR>
|
---|
225 | </TD>
|
---|
226 | </TR>
|
---|
227 | </TABLE>
|
---|
228 |
|
---|
229 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
230 |
|
---|
231 | <A NAME="method_summary"><!-- --></A>
|
---|
232 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
233 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
234 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
235 | <B>Method Summary</B></FONT></TD>
|
---|
236 | </TR>
|
---|
237 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
238 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
239 | <CODE> void</CODE></FONT></TD>
|
---|
240 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#addFileSet(org.apache.tools.ant.types.FileSet)">addFileSet</A></B>(<A HREF="../../../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A> fs)</CODE>
|
---|
241 |
|
---|
242 | <BR>
|
---|
243 | Add a new fileset containing the XML results to aggregate</TD>
|
---|
244 | </TR>
|
---|
245 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
246 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
247 | <CODE>protected void</CODE></FONT></TD>
|
---|
248 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#addTestSuite(org.w3c.dom.Element, org.w3c.dom.Element)">addTestSuite</A></B>(org.w3c.dom.Element root,
|
---|
249 | org.w3c.dom.Element testsuite)</CODE>
|
---|
250 |
|
---|
251 | <BR>
|
---|
252 | Add a new testsuite node to the document.</TD>
|
---|
253 | </TR>
|
---|
254 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
255 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
256 | <CODE>protected org.w3c.dom.Element</CODE></FONT></TD>
|
---|
257 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#createDocument()">createDocument</A></B>()</CODE>
|
---|
258 |
|
---|
259 | <BR>
|
---|
260 | Create a DOM tree.</TD>
|
---|
261 | </TR>
|
---|
262 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
263 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
264 | <CODE> <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.html" title="class in org.apache.tools.ant.taskdefs.optional.junit">AggregateTransformer</A></CODE></FONT></TD>
|
---|
265 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#createReport()">createReport</A></B>()</CODE>
|
---|
266 |
|
---|
267 | <BR>
|
---|
268 | Generate a report based on the document created by the merge.</TD>
|
---|
269 | </TR>
|
---|
270 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
271 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
272 | <CODE> void</CODE></FONT></TD>
|
---|
273 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#execute()">execute</A></B>()</CODE>
|
---|
274 |
|
---|
275 | <BR>
|
---|
276 | Aggregate all testsuites into a single document and write it to the
|
---|
277 | specified directory and file.</TD>
|
---|
278 | </TR>
|
---|
279 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
280 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
281 | <CODE>protected java.io.File</CODE></FONT></TD>
|
---|
282 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#getDestinationFile()">getDestinationFile</A></B>()</CODE>
|
---|
283 |
|
---|
284 | <BR>
|
---|
285 | Get the full destination file where to write the result.</TD>
|
---|
286 | </TR>
|
---|
287 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
288 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
289 | <CODE>protected java.io.File[]</CODE></FONT></TD>
|
---|
290 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#getFiles()">getFiles</A></B>()</CODE>
|
---|
291 |
|
---|
292 | <BR>
|
---|
293 | Get all <code>.xml</code> files in the fileset.</TD>
|
---|
294 | </TR>
|
---|
295 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
296 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
297 | <CODE> void</CODE></FONT></TD>
|
---|
298 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#setTodir(java.io.File)">setTodir</A></B>(java.io.File value)</CODE>
|
---|
299 |
|
---|
300 | <BR>
|
---|
301 | Set the destination directory where the results should be written.</TD>
|
---|
302 | </TR>
|
---|
303 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
304 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
305 | <CODE> void</CODE></FONT></TD>
|
---|
306 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#setTofile(java.lang.String)">setTofile</A></B>(java.lang.String value)</CODE>
|
---|
307 |
|
---|
308 | <BR>
|
---|
309 | Set the name of the aggregegated results file.</TD>
|
---|
310 | </TR>
|
---|
311 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
312 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
313 | <CODE>protected void</CODE></FONT></TD>
|
---|
314 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#writeDOMTree(org.w3c.dom.Document, java.io.File)">writeDOMTree</A></B>(org.w3c.dom.Document doc,
|
---|
315 | java.io.File file)</CODE>
|
---|
316 |
|
---|
317 | <BR>
|
---|
318 | Write the DOM tree to a file.</TD>
|
---|
319 | </TR>
|
---|
320 | </TABLE>
|
---|
321 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
322 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
323 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
324 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
|
---|
325 | </TR>
|
---|
326 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
327 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/Task.html#getDescription()">getDescription</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#getLocation()">getLocation</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#getOwningTarget()">getOwningTarget</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#getRuntimeConfigurableWrapper()">getRuntimeConfigurableWrapper</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#getTaskName()">getTaskName</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#getTaskType()">getTaskType</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#getWrapper()">getWrapper</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#handleErrorFlush(java.lang.String)">handleErrorFlush</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#handleErrorOutput(java.lang.String)">handleErrorOutput</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#handleFlush(java.lang.String)">handleFlush</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#handleInput(byte[], int, int)">handleInput</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#handleOutput(java.lang.String)">handleOutput</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#init()">init</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#isInvalid()">isInvalid</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#log(java.lang.String)">log</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#log(java.lang.String, int)">log</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#maybeConfigure()">maybeConfigure</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#perform()">perform</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#reconfigure()">reconfigure</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#setLocation(org.apache.tools.ant.Location)">setLocation</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#setOwningTarget(org.apache.tools.ant.Target)">setOwningTarget</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable)">setRuntimeConfigurableWrapper</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#setTaskName(java.lang.String)">setTaskName</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#setTaskType(java.lang.String)">setTaskType</A></CODE></TD>
|
---|
328 | </TR>
|
---|
329 | </TABLE>
|
---|
330 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
331 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
332 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
333 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
334 | </TR>
|
---|
335 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
336 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html#getProject()">getProject</A>, <A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html#setProject(org.apache.tools.ant.Project)">setProject</A></CODE></TD>
|
---|
337 | </TR>
|
---|
338 | </TABLE>
|
---|
339 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
340 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
341 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
342 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
343 | </TR>
|
---|
344 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
345 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
346 | </TR>
|
---|
347 | </TABLE>
|
---|
348 |
|
---|
349 | <P>
|
---|
350 |
|
---|
351 | <!-- ============ FIELD DETAIL =========== -->
|
---|
352 |
|
---|
353 | <A NAME="field_detail"><!-- --></A>
|
---|
354 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
355 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
356 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
357 | <B>Field Detail</B></FONT></TD>
|
---|
358 | </TR>
|
---|
359 | </TABLE>
|
---|
360 |
|
---|
361 | <A NAME="filesets"><!-- --></A><H3>
|
---|
362 | filesets</H3>
|
---|
363 | <PRE>
|
---|
364 | protected java.util.Vector <B>filesets</B></PRE>
|
---|
365 | <DL>
|
---|
366 | <DD>the list of all filesets, that should contains the xml to aggregate
|
---|
367 | <P>
|
---|
368 | <DL>
|
---|
369 | </DL>
|
---|
370 | </DL>
|
---|
371 | <HR>
|
---|
372 |
|
---|
373 | <A NAME="toFile"><!-- --></A><H3>
|
---|
374 | toFile</H3>
|
---|
375 | <PRE>
|
---|
376 | protected java.lang.String <B>toFile</B></PRE>
|
---|
377 | <DL>
|
---|
378 | <DD>the name of the result file
|
---|
379 | <P>
|
---|
380 | <DL>
|
---|
381 | </DL>
|
---|
382 | </DL>
|
---|
383 | <HR>
|
---|
384 |
|
---|
385 | <A NAME="toDir"><!-- --></A><H3>
|
---|
386 | toDir</H3>
|
---|
387 | <PRE>
|
---|
388 | protected java.io.File <B>toDir</B></PRE>
|
---|
389 | <DL>
|
---|
390 | <DD>the directory to write the file to
|
---|
391 | <P>
|
---|
392 | <DL>
|
---|
393 | </DL>
|
---|
394 | </DL>
|
---|
395 | <HR>
|
---|
396 |
|
---|
397 | <A NAME="transformers"><!-- --></A><H3>
|
---|
398 | transformers</H3>
|
---|
399 | <PRE>
|
---|
400 | protected java.util.Vector <B>transformers</B></PRE>
|
---|
401 | <DL>
|
---|
402 | <DL>
|
---|
403 | </DL>
|
---|
404 | </DL>
|
---|
405 | <HR>
|
---|
406 |
|
---|
407 | <A NAME="DEFAULT_DIR"><!-- --></A><H3>
|
---|
408 | DEFAULT_DIR</H3>
|
---|
409 | <PRE>
|
---|
410 | public static final java.lang.String <B>DEFAULT_DIR</B></PRE>
|
---|
411 | <DL>
|
---|
412 | <DD>The default directory: <tt>.</tt>. It is resolved from the project directory
|
---|
413 | <P>
|
---|
414 | <DL>
|
---|
415 | <DT><B>See Also:</B><DD><A HREF="../../../../../../../constant-values.html#org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.DEFAULT_DIR">Constant Field Values</A></DL>
|
---|
416 | </DL>
|
---|
417 | <HR>
|
---|
418 |
|
---|
419 | <A NAME="DEFAULT_FILENAME"><!-- --></A><H3>
|
---|
420 | DEFAULT_FILENAME</H3>
|
---|
421 | <PRE>
|
---|
422 | public static final java.lang.String <B>DEFAULT_FILENAME</B></PRE>
|
---|
423 | <DL>
|
---|
424 | <DD>the default file name: <tt>TESTS-TestSuites.xml</tt>
|
---|
425 | <P>
|
---|
426 | <DL>
|
---|
427 | <DT><B>See Also:</B><DD><A HREF="../../../../../../../constant-values.html#org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.DEFAULT_FILENAME">Constant Field Values</A></DL>
|
---|
428 | </DL>
|
---|
429 | <HR>
|
---|
430 |
|
---|
431 | <A NAME="generatedId"><!-- --></A><H3>
|
---|
432 | generatedId</H3>
|
---|
433 | <PRE>
|
---|
434 | protected int <B>generatedId</B></PRE>
|
---|
435 | <DL>
|
---|
436 | <DD>the current generated id
|
---|
437 | <P>
|
---|
438 | <DL>
|
---|
439 | </DL>
|
---|
440 | </DL>
|
---|
441 |
|
---|
442 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
443 |
|
---|
444 | <A NAME="constructor_detail"><!-- --></A>
|
---|
445 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
446 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
447 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
448 | <B>Constructor Detail</B></FONT></TD>
|
---|
449 | </TR>
|
---|
450 | </TABLE>
|
---|
451 |
|
---|
452 | <A NAME="XMLResultAggregator()"><!-- --></A><H3>
|
---|
453 | XMLResultAggregator</H3>
|
---|
454 | <PRE>
|
---|
455 | public <B>XMLResultAggregator</B>()</PRE>
|
---|
456 | <DL>
|
---|
457 | </DL>
|
---|
458 |
|
---|
459 | <!-- ============ METHOD DETAIL ========== -->
|
---|
460 |
|
---|
461 | <A NAME="method_detail"><!-- --></A>
|
---|
462 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
463 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
464 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
465 | <B>Method Detail</B></FONT></TD>
|
---|
466 | </TR>
|
---|
467 | </TABLE>
|
---|
468 |
|
---|
469 | <A NAME="createReport()"><!-- --></A><H3>
|
---|
470 | createReport</H3>
|
---|
471 | <PRE>
|
---|
472 | public <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.html" title="class in org.apache.tools.ant.taskdefs.optional.junit">AggregateTransformer</A> <B>createReport</B>()</PRE>
|
---|
473 | <DL>
|
---|
474 | <DD>Generate a report based on the document created by the merge.
|
---|
475 | <P>
|
---|
476 | <DD><DL>
|
---|
477 | </DL>
|
---|
478 | </DD>
|
---|
479 | <DD><DL>
|
---|
480 |
|
---|
481 | <DT><B>Returns:</B><DD>the report</DL>
|
---|
482 | </DD>
|
---|
483 | </DL>
|
---|
484 | <HR>
|
---|
485 |
|
---|
486 | <A NAME="setTofile(java.lang.String)"><!-- --></A><H3>
|
---|
487 | setTofile</H3>
|
---|
488 | <PRE>
|
---|
489 | public void <B>setTofile</B>(java.lang.String value)</PRE>
|
---|
490 | <DL>
|
---|
491 | <DD>Set the name of the aggregegated results file. It must be relative
|
---|
492 | from the <tt>todir</tt> attribute. If not set it will use <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#DEFAULT_FILENAME"><CODE>DEFAULT_FILENAME</CODE></A>
|
---|
493 | <P>
|
---|
494 | <DD><DL>
|
---|
495 | </DL>
|
---|
496 | </DD>
|
---|
497 | <DD><DL>
|
---|
498 | <DT><B>Parameters:</B><DD><CODE>value</CODE> - the name of the file.<DT><B>See Also:</B><DD><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#setTodir(java.io.File)"><CODE>setTodir(File)</CODE></A></DL>
|
---|
499 | </DD>
|
---|
500 | </DL>
|
---|
501 | <HR>
|
---|
502 |
|
---|
503 | <A NAME="setTodir(java.io.File)"><!-- --></A><H3>
|
---|
504 | setTodir</H3>
|
---|
505 | <PRE>
|
---|
506 | public void <B>setTodir</B>(java.io.File value)</PRE>
|
---|
507 | <DL>
|
---|
508 | <DD>Set the destination directory where the results should be written. If not
|
---|
509 | set if will use <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.html#DEFAULT_DIR"><CODE>DEFAULT_DIR</CODE></A>. When given a relative directory
|
---|
510 | it will resolve it from the project directory.
|
---|
511 | <P>
|
---|
512 | <DD><DL>
|
---|
513 | </DL>
|
---|
514 | </DD>
|
---|
515 | <DD><DL>
|
---|
516 | <DT><B>Parameters:</B><DD><CODE>value</CODE> - the directory where to write the results, absolute or
|
---|
517 | relative.</DL>
|
---|
518 | </DD>
|
---|
519 | </DL>
|
---|
520 | <HR>
|
---|
521 |
|
---|
522 | <A NAME="addFileSet(org.apache.tools.ant.types.FileSet)"><!-- --></A><H3>
|
---|
523 | addFileSet</H3>
|
---|
524 | <PRE>
|
---|
525 | public void <B>addFileSet</B>(<A HREF="../../../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A> fs)</PRE>
|
---|
526 | <DL>
|
---|
527 | <DD>Add a new fileset containing the XML results to aggregate
|
---|
528 | <P>
|
---|
529 | <DD><DL>
|
---|
530 | </DL>
|
---|
531 | </DD>
|
---|
532 | <DD><DL>
|
---|
533 | <DT><B>Parameters:</B><DD><CODE>fs</CODE> - the new fileset of xml results.</DL>
|
---|
534 | </DD>
|
---|
535 | </DL>
|
---|
536 | <HR>
|
---|
537 |
|
---|
538 | <A NAME="execute()"><!-- --></A><H3>
|
---|
539 | execute</H3>
|
---|
540 | <PRE>
|
---|
541 | public void <B>execute</B>()
|
---|
542 | throws <A HREF="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
543 | <DL>
|
---|
544 | <DD>Aggregate all testsuites into a single document and write it to the
|
---|
545 | specified directory and file.
|
---|
546 | <P>
|
---|
547 | <DD><DL>
|
---|
548 | <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../../org/apache/tools/ant/Task.html#execute()">execute</A></CODE> in class <CODE><A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
|
---|
549 | </DD>
|
---|
550 | <DD><DL>
|
---|
551 |
|
---|
552 | <DT><B>Throws:</B>
|
---|
553 | <DD><CODE><A HREF="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - thrown if there is a serious error while writing
|
---|
554 | the document.</DL>
|
---|
555 | </DD>
|
---|
556 | </DL>
|
---|
557 | <HR>
|
---|
558 |
|
---|
559 | <A NAME="getDestinationFile()"><!-- --></A><H3>
|
---|
560 | getDestinationFile</H3>
|
---|
561 | <PRE>
|
---|
562 | protected java.io.File <B>getDestinationFile</B>()</PRE>
|
---|
563 | <DL>
|
---|
564 | <DD>Get the full destination file where to write the result. It is made of
|
---|
565 | the <tt>todir</tt> and <tt>tofile</tt> attributes.
|
---|
566 | <P>
|
---|
567 | <DD><DL>
|
---|
568 | </DL>
|
---|
569 | </DD>
|
---|
570 | <DD><DL>
|
---|
571 |
|
---|
572 | <DT><B>Returns:</B><DD>the destination file where should be written the result file.</DL>
|
---|
573 | </DD>
|
---|
574 | </DL>
|
---|
575 | <HR>
|
---|
576 |
|
---|
577 | <A NAME="getFiles()"><!-- --></A><H3>
|
---|
578 | getFiles</H3>
|
---|
579 | <PRE>
|
---|
580 | protected java.io.File[] <B>getFiles</B>()</PRE>
|
---|
581 | <DL>
|
---|
582 | <DD>Get all <code>.xml</code> files in the fileset.
|
---|
583 | <P>
|
---|
584 | <DD><DL>
|
---|
585 | </DL>
|
---|
586 | </DD>
|
---|
587 | <DD><DL>
|
---|
588 |
|
---|
589 | <DT><B>Returns:</B><DD>all files in the fileset that end with a '.xml'.</DL>
|
---|
590 | </DD>
|
---|
591 | </DL>
|
---|
592 | <HR>
|
---|
593 |
|
---|
594 | <A NAME="writeDOMTree(org.w3c.dom.Document, java.io.File)"><!-- --></A><H3>
|
---|
595 | writeDOMTree</H3>
|
---|
596 | <PRE>
|
---|
597 | protected void <B>writeDOMTree</B>(org.w3c.dom.Document doc,
|
---|
598 | java.io.File file)
|
---|
599 | throws java.io.IOException</PRE>
|
---|
600 | <DL>
|
---|
601 | <DD>Write the DOM tree to a file.
|
---|
602 | <P>
|
---|
603 | <DD><DL>
|
---|
604 | </DL>
|
---|
605 | </DD>
|
---|
606 | <DD><DL>
|
---|
607 | <DT><B>Parameters:</B><DD><CODE>doc</CODE> - the XML document to dump to disk.<DD><CODE>file</CODE> - the filename to write the document to. Should obviouslly be a .xml file.
|
---|
608 | <DT><B>Throws:</B>
|
---|
609 | <DD><CODE>java.io.IOException</CODE> - thrown if there is an error while writing the content.</DL>
|
---|
610 | </DD>
|
---|
611 | </DL>
|
---|
612 | <HR>
|
---|
613 |
|
---|
614 | <A NAME="createDocument()"><!-- --></A><H3>
|
---|
615 | createDocument</H3>
|
---|
616 | <PRE>
|
---|
617 | protected org.w3c.dom.Element <B>createDocument</B>()</PRE>
|
---|
618 | <DL>
|
---|
619 | <DD><p> Create a DOM tree.
|
---|
620 | Has 'testsuites' as firstchild and aggregates all
|
---|
621 | testsuite results that exists in the base directory.
|
---|
622 | <P>
|
---|
623 | <DD><DL>
|
---|
624 | </DL>
|
---|
625 | </DD>
|
---|
626 | <DD><DL>
|
---|
627 |
|
---|
628 | <DT><B>Returns:</B><DD>the root element of DOM tree that aggregates all testsuites.</DL>
|
---|
629 | </DD>
|
---|
630 | </DL>
|
---|
631 | <HR>
|
---|
632 |
|
---|
633 | <A NAME="addTestSuite(org.w3c.dom.Element, org.w3c.dom.Element)"><!-- --></A><H3>
|
---|
634 | addTestSuite</H3>
|
---|
635 | <PRE>
|
---|
636 | protected void <B>addTestSuite</B>(org.w3c.dom.Element root,
|
---|
637 | org.w3c.dom.Element testsuite)</PRE>
|
---|
638 | <DL>
|
---|
639 | <DD><p> Add a new testsuite node to the document.
|
---|
640 | The main difference is that it
|
---|
641 | split the previous fully qualified name into a package and a name.
|
---|
642 | <p> For example: <tt>org.apache.Whatever</tt> will be split into
|
---|
643 | <tt>org.apache</tt> and <tt>Whatever</tt>.
|
---|
644 | <P>
|
---|
645 | <DD><DL>
|
---|
646 | </DL>
|
---|
647 | </DD>
|
---|
648 | <DD><DL>
|
---|
649 | <DT><B>Parameters:</B><DD><CODE>root</CODE> - the root element to which the <tt>testsuite</tt> node should
|
---|
650 | be appended.<DD><CODE>testsuite</CODE> - the element to append to the given root. It will slightly
|
---|
651 | modify the original node to change the name attribute and add
|
---|
652 | a package one.</DL>
|
---|
653 | </DD>
|
---|
654 | </DL>
|
---|
655 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
656 | <HR>
|
---|
657 |
|
---|
658 |
|
---|
659 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
660 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
661 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
662 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
663 | <TR>
|
---|
664 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
665 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
666 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
667 | <TR ALIGN="center" VALIGN="top">
|
---|
668 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
669 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
670 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
671 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
672 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
673 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
674 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
675 | </TR>
|
---|
676 | </TABLE>
|
---|
677 | </TD>
|
---|
678 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
679 | </EM>
|
---|
680 | </TD>
|
---|
681 | </TR>
|
---|
682 |
|
---|
683 | <TR>
|
---|
684 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
685 | <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><B>PREV CLASS</B></A>
|
---|
686 | NEXT CLASS</FONT></TD>
|
---|
687 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
688 | <A HREF="../../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
689 | <A HREF="XMLResultAggregator.html" target="_top"><B>NO FRAMES</B></A>
|
---|
690 | <SCRIPT type="text/javascript">
|
---|
691 | <!--
|
---|
692 | if(window==top) {
|
---|
693 | document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
694 | }
|
---|
695 | //-->
|
---|
696 | </SCRIPT>
|
---|
697 | <NOSCRIPT>
|
---|
698 | <A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
699 | </NOSCRIPT>
|
---|
700 |
|
---|
701 | </FONT></TD>
|
---|
702 | </TR>
|
---|
703 | <TR>
|
---|
704 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
705 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
706 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
707 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
708 | </TR>
|
---|
709 | </TABLE>
|
---|
710 | <A NAME="skip-navbar_bottom"></A>
|
---|
711 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
712 |
|
---|
713 | <HR>
|
---|
714 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
715 | </BODY>
|
---|
716 | </HTML>
|
---|