Author: mbenson
Date: Fri Sep 22 13:48:20 2006
New Revision: 449083
URL: http://svn.apache.org/viewvc?view=rev&rev=449083
Log:
add logcontent typedef and doco.
Added:
ant/antlibs/antunit/trunk/docs/logcontent.html (with props)
Modified:
ant/antlibs/antunit/trunk/docs/antunit.html
ant/antlibs/antunit/trunk/docs/index.html
ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml
Modified: ant/antlibs/antunit/trunk/docs/antunit.html
URL:
http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/docs/antunit.html?view=diff&rev=449083&r1=449082&r2=449083
==============================================================================
--- ant/antlibs/antunit/trunk/docs/antunit.html (original)
+++ ant/antlibs/antunit/trunk/docs/antunit.html Fri Sep 22 13:48:20 2006
@@ -115,6 +115,9 @@
}
</pre>
+<p>Additionally, the contents of the log can be accessed through a
+<a href="logcontent.html">LogContent</a> resource.</p>
+
<h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
Modified: ant/antlibs/antunit/trunk/docs/index.html
URL:
http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/docs/index.html?view=diff&rev=449083&r1=449082&r2=449083
==============================================================================
--- ant/antlibs/antunit/trunk/docs/index.html (original)
+++ ant/antlibs/antunit/trunk/docs/index.html Fri Sep 22 13:48:20 2006
@@ -106,7 +106,7 @@
</li>
</ul>
- <h2>Tasks</h2>
+ <h2>Tasks and Types</h2>
<ul>
<li><a href="antunit.html">antunit</a> - run unit tests, the
@@ -122,6 +122,9 @@
<li><a href="expectfailure.html">expectfailure</a> - a task
container useful for tests that assert build failures.</li>
+
+ <li><a href="logcontent.html">logcontent</a> - an Ant Resource
+ that contains the log output of an AntUnit test.</li>
</ul>
<hr/>
Added: ant/antlibs/antunit/trunk/docs/logcontent.html
URL:
http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/docs/logcontent.html?view=auto&rev=449083
==============================================================================
--- ant/antlibs/antunit/trunk/docs/logcontent.html (added)
+++ ant/antlibs/antunit/trunk/docs/logcontent.html Fri Sep 22 13:48:20 2006
@@ -0,0 +1,53 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<html>
+ <head>
+ <meta http-equiv="Content-Language" content="en-us"></meta>
+ <link rel="stylesheet" type="text/css" href="style.css">
+ <title>LogContent resource</title>
+ </head>
+
+ <body>
+ <h2><a name="antunit">LogContent</a></h2>
+
+ <h3>Description</h3>
+
+ <p>Provides access to output logged by <a href="antunit.html">AntUnit</a>
+ in terms of Ant's Resource framework. Like
+ <a href="assertions.html#assertLogContains">assertLogContains</a> and
+ <a
href="assertions.html#assertLogDoesntContain">assertLogDoesntContain</a>,
+ only works in the context of an <antunit> task.</p>
+
+ <h3>Parameters</h3>
+ <table border="1" cellpadding="2" cellspacing="0">
+ <tr>
+ <td valign="top"><b>Attribute</b></td>
+ <td valign="top"><b>Description</b></td>
+ <td align="center" valign="top"><b>Required</b></td>
+ </tr>
+ <tr>
+ <td valign="top">level</td>
+ <td valign="top">The maximum log level to retrieve
+
("err"/"warn"/"info"/"verbose"/"debug").
+ Defaults to "info".</td>
+ <td align="center">No.</td>
+ </tr>
+ </table>
+ </body>
+</html>
Propchange: ant/antlibs/antunit/trunk/docs/logcontent.html
------------------------------------------------------------------------------
svn:eol-style = native
Modified: ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml
URL:
http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml?view=diff&rev=449083&r1=449082&r2=449083
==============================================================================
--- ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml
(original)
+++ ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml Fri
Sep 22 13:48:20 2006
@@ -39,6 +39,9 @@
<typedef name="logcontains"
classname="org.apache.ant.antunit.LogContains"/>
+ <typedef name="logcontent"
+ classname="org.apache.ant.antunit.LogContent" />
+
<macrodef name="assertFalse" backtrace="false">
<attribute name="message" default="Assertion failed"/>
<element name="assertion" implicit="true"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]