Author: rdonkin
Date: Sun Nov 30 10:23:03 2008
New Revision: 721867

URL: http://svn.apache.org/viewvc?rev=721867&view=rev
Log:
Added example

Modified:
    james/mpt/trunk/antlib/src/site/xdoc/index.xml

Modified: james/mpt/trunk/antlib/src/site/xdoc/index.xml
URL: 
http://svn.apache.org/viewvc/james/mpt/trunk/antlib/src/site/xdoc/index.xml?rev=721867&r1=721866&r2=721867&view=diff
==============================================================================
--- james/mpt/trunk/antlib/src/site/xdoc/index.xml (original)
+++ james/mpt/trunk/antlib/src/site/xdoc/index.xml Sun Nov 30 10:23:03 2008
@@ -86,7 +86,6 @@
 </tr>
 </table>
 </subsection>
-</subsection>
 
 <subsection name='Nested Elements'>
 <subsection name='Any Resource Collection'>
@@ -135,8 +134,39 @@
 as text to the body of this element.
 </p>
 </subsection>
-<subsection name='Example'>
-<p>TODO:</p>
+</subsection>
+<subsection name='Examples'>
+<source>
+<![CDATA[
+<project 
+    name="tests" 
+    default="main" 
+    xmlns:mpt="antlib:org.apache.james.mpt.ant">
+
+    <!-- Connect to port 10000 on localhost and run all scripts in 
src/test/resources/ -->
+    <target name='ConnectToServerPort10000'>
+        <mpt:mpt port='10000'>
+            <fileset dir='src/test/resources/>
+               <include name='**/*.mpt'/>
+            </fileset>
+        </mpt:mpt>
+    </target>
+    
+    <!-- 
+    Connects to port 4001 on example.org then runs user addition script
+    Then connects to port 143 on example.org and runs test script 'test.mpt'
+    -->
+    <target name='ConnectToExampleDotOrgPort143'>
+        <au:expectfailure>
+            <mpt:mpt port='143' host='example.org' script='test.mpt'>
+                <!-- Add users by running 'Add User "${user}" "${passwd}"' -->
+                <addUser port='4001' user='user' passwd='passwd'>C: Add User 
"${user}" "${passwd}"</addUser>
+            </mpt:mpt>
+        </au:expectfailure>
+    </target>
+</project>
+]]>
+</source>
 </subsection>
 </subsection>
 </section>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to